Skip to content

Commit 44ab013

Browse files
committed
Run setup command in the bin directory
1 parent 07c65da commit 44ab013

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/kotlin/com/coder/gateway/models/WorkspaceProjectIDE.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ class WorkspaceProjectIDE(
188188
}
189189

190190
/**
191-
* Execute a command in the IDE directory.
191+
* Execute a command in the IDE's bin directory.
192192
*/
193193
private fun exec(command: String): String {
194194
return ProcessExecutor()
195-
.command("ssh", "-t", hostname, "cd '$idePathOnHost' ; $command")
195+
.command("ssh", "-t", hostname, "cd '$idePathOnHost' ; cd bin ; $command")
196196
.exitValues(0)
197197
.readOutput(true)
198198
.execute()

src/main/resources/messages/CoderGatewayBundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,6 @@ gateway.connector.settings.ssh-config-options.comment=Extra SSH config options \
124124
environment variable {0} will be used, if set.
125125
gateway.connector.settings.setup-command.title=Setup command:
126126
gateway.connector.settings.setup-command.comment=An external command that \
127-
will be executed on the remote in the directory of the IDE before \
127+
will be executed on the remote in the bin directory of the IDE before \
128128
connecting to it.
129129

0 commit comments

Comments
 (0)