Skip to content

Commit

Permalink
Set permissions (eclipse-che#4845)
Browse files Browse the repository at this point in the history
In some cases exec agent can fail to start due to the missing permission of current folder. We do the same like we do for ws-agent- we update permissions of /project folder
  • Loading branch information
skabashnyuk committed Apr 19, 2017
1 parent b016d61 commit 3310744
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agents/exec/src/main/resources/org.eclipse.che.exec.script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ MACHINE_TYPE=$(uname -m)
SHELL_INTERPRETER="/bin/sh"

mkdir -p ${CHE_DIR}
${SUDO} mkdir -p /projects
${SUDO} sh -c "chown $(id -u -n) /projects"

########################
### Install packages ###
Expand Down

0 comments on commit 3310744

Please sign in to comment.