From 19a8b6f2794946743aeeaa783a5585001be12c59 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 22 Oct 2022 23:29:16 +0100 Subject: [PATCH] check functions are executable --- entrypoint.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0721bbd..ff7a204 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -42,6 +42,12 @@ if [ ! -f "${GAMESERVER}" ]; then ./linuxgsm.sh ${GAMESERVER} fi +if [ --d "/linuxgsm/lgsm/functions"]; then + echo "" + echo "check all functions are executable" + chmod +x /linuxgsm/lgsm/functions/* +fi + # Clear functions directory if not master if [ "${LGSM_GITHUBBRANCH}" != "master" ]; then rm -rf /linuxgsm/lgsm/functions/* @@ -54,7 +60,7 @@ if [ -z "$(ls -A -- "serverfiles")" ]; then ./${GAMESERVER} auto-install fi -echo "Starting cron" +echo "starting cron" cron # Update game server