From c7d87ed1f3fb01d6078adb724d669cbf4afb206d Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 13 Nov 2022 23:49:40 +0000 Subject: [PATCH] feat: UID and GID updated on start --- entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 03fe52d..327699f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -38,6 +38,10 @@ export LGSM_GITHUBBRANCH=${LGSM_GITHUBBRANCH} cd /linuxgsm || exit # permissions +usermod -u ${UID} linuxgsm +groupmod -g ${GID} linuxgsm +find /linuxgsm -user ${UID} -exec chown -h linuxgsm {} \; +find /linuxgsm -group ${GID} -exec chgrp -h linuxgsm {} \; chown -R linuxgsm:linuxgsm /linuxgsm # Setup game server @@ -70,7 +74,7 @@ else ./${GAMESERVER} donate fi -echo -e "Starting cron" +echo -e "Starting Monitor" echo -e "=================================" #cron nohup watch -n "${UPDATE_CHECK}" ./${GAMESERVER} update >/dev/null 2>&1 &