Skip to content

Commit 3310744

Browse files
authored
Set permissions (eclipse-che#4845)
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
1 parent b016d61 commit 3310744

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

agents/exec/src/main/resources/org.eclipse.che.exec.script.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ MACHINE_TYPE=$(uname -m)
4545
SHELL_INTERPRETER="/bin/sh"
4646

4747
mkdir -p ${CHE_DIR}
48+
${SUDO} mkdir -p /projects
49+
${SUDO} sh -c "chown $(id -u -n) /projects"
4850

4951
########################
5052
### Install packages ###

0 commit comments

Comments
 (0)