From 33107440b2eae0f2e5d2f4468e87abd56fffa391 Mon Sep 17 00:00:00 2001 From: Sergii Kabashniuk Date: Wed, 19 Apr 2017 17:37:35 +0300 Subject: [PATCH] Set permissions (#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 --- agents/exec/src/main/resources/org.eclipse.che.exec.script.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agents/exec/src/main/resources/org.eclipse.che.exec.script.sh b/agents/exec/src/main/resources/org.eclipse.che.exec.script.sh index 22d4dd94f24..83ec5d85300 100644 --- a/agents/exec/src/main/resources/org.eclipse.che.exec.script.sh +++ b/agents/exec/src/main/resources/org.eclipse.che.exec.script.sh @@ -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 ###