From 644605dff53fe8b510289b1f139c7740216b949d Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 20 Oct 2022 19:57:46 +0100 Subject: [PATCH] update permissions --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2ac2692..1ebf535 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,6 +11,9 @@ exit_handler () { echo "loading exit trap" trap exit_handler SIGTERM +echo "update permissions for linuxgsm" +sudo chown -R $USER_UID:$USER_GID /home/linuxgsm + echo -e "Welcome to the LinuxGSM Docker" echo -e "================================================================================" echo -e "GAMESERVER: ${GAMESERVER}" @@ -26,9 +29,6 @@ echo -e "LGSM_GITHUBBRANCH: ${LGSM_GITHUBBRANCH}" echo -e "" echo -e "Initalising" echo -e "================================================================================" -# Correct permissions in home dir -echo "update permissions for linuxgsm" -sudo chown -R linuxgsm:linuxgsm /home/linuxgsm # Copy linuxgsm.sh into homedir if [ ! -e ~/linuxgsm.sh ]; then