Skip to content

Commit

Permalink
Allow to continue to start the script even if there is a chown failure (
Browse files Browse the repository at this point in the history
#1917)

When mounting a local folder with .git we have the following warnings
chown: changing permission on ....git.idx : permission denied

this new command allow to continue

Change-Id: Idbedd1958e4a60a2aea251d1a657bbcdec063ffb
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
  • Loading branch information
benoitf authored and Tyler Jewell committed Jul 22, 2016
1 parent 60842c2 commit 48c8f14
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -64,7 +64,7 @@ protected void configure() {

bindConstant().annotatedWith(Names.named(org.eclipse.che.api.machine.server.wsagent.WsAgentLauncherImpl.WS_AGENT_PROCESS_START_COMMAND))
.to("rm -rf ~/che && mkdir -p ~/che && unzip -qq /mnt/che/ws-agent.zip -d ~/che/ws-agent && " +
"sudo chown -R $(id -u -n) /projects && " +
"sudo sh -c \"chown -R $(id -u -n) /projects || true\" && " +
"export JPDA_ADDRESS=\"4403\" && ~/che/ws-agent/bin/catalina.sh jpda run");
bindConstant().annotatedWith(Names.named(org.eclipse.che.plugin.docker.machine.DockerMachineImplTerminalLauncher.START_TERMINAL_COMMAND))
.to("mkdir -p ~/che " +
Expand Down

0 comments on commit 48c8f14

Please sign in to comment.