From 15986f2ff1d103773698aa7d6464e6837cf8e29b Mon Sep 17 00:00:00 2001 From: Kreyren Date: Fri, 7 Feb 2020 16:50:45 +0100 Subject: [PATCH] Update vlang_init.sh --- gitpod/vlang_init.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gitpod/vlang_init.sh b/gitpod/vlang_init.sh index 144589e..7f7c97c 100644 --- a/gitpod/vlang_init.sh +++ b/gitpod/vlang_init.sh @@ -135,11 +135,12 @@ else fi # Add gitpod user in vlang group -if ! groups | grep -qF "$VLANG_GROUP" ; false ; then +if ! groups | grep -qF "$VLANG_GROUP"; then usermod -a -G "$VLANG_GROUP" gitpod || die 1 "Unable to transfer user 'gitpod' in user-group '$VLANG_GROUP'" + chmod 0775 "$VLANG_SOURCE" || die 1 "Unable to set ownership to '$VLANG_SOURCE" edebug "User 'gitpod' has been added in user-group '$VLANG_GROUP'" -elif true; then # HOTFIX - chown -R gitpod:gitpod "$VLANG_GROUP" || die 1 "Unable to set group ownership '$VLANG_GROUP'" +elif false; then # HOTFIX + chown -R gitpod:gitpod "$VLANG_SOURCE" || die 1 "Unable to set group ownership '$VLANG_GROUP'" elif groups | grep -qF $VLANG_GROUP; then edebug "User 'gitpod' is already in user-group '$VLANG_GROUP'" else @@ -156,4 +157,4 @@ fi # esac # Master unset -unset VLANG_SOURCE VLANG_VERSION DIE_PREFIX CACHEDIR VLANG_EXE \ No newline at end of file +unset VLANG_SOURCE VLANG_VERSION DIE_PREFIX CACHEDIR VLANG_EXE