Update vlang_init.sh

This commit is contained in:
Kreyren 2020-02-07 16:50:45 +01:00 committed by GitHub
parent 792541a1b9
commit 15986f2ff1
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -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
unset VLANG_SOURCE VLANG_VERSION DIE_PREFIX CACHEDIR VLANG_EXE