From 5eb84322b22f1d17c9b56fd80a7a5eea709dbb3f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 2 Sep 2023 22:47:38 +0100 Subject: [PATCH] refactor: improve entrypoint-user.sh script - Clear modules directory if not on master branch - Update LGSM after clearing modules directory --- entrypoint-user.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/entrypoint-user.sh b/entrypoint-user.sh index debc3af..37d913d 100755 --- a/entrypoint-user.sh +++ b/entrypoint-user.sh @@ -24,6 +24,7 @@ fi if [ "${LGSM_GITHUBBRANCH}" != "master" ]; then echo -e "not master branch, clearing modules directory" rm -rf /app/lgsm/modules/* + ./"${GAMESERVER}" update-lgsm elif [ -d "/app/lgsm/modules" ]; then echo -e "ensure all modules are executable" chmod +x /app/lgsm/modules/*