Browse Source

refactor: improve entrypoint-user.sh script

- Clear modules directory if not on master branch
- Update LGSM after clearing modules directory
pull/28/head
Daniel Gibbs 2 years ago
parent
commit
5eb84322b2
  1. 1
      entrypoint-user.sh

1
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/*

Loading…
Cancel
Save