From e03d89ed4d364d4c6f336c1d24f1424e243733ca Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 2 Jul 2023 02:30:16 +0100 Subject: [PATCH] fix: update file paths in entrypoint scripts The commit updates the file paths in the entrypoint scripts to use the correct variables and directories. This ensures that the scripts work as intended and avoid any potential errors or issues. --- entrypoint-healthcheck.sh | 2 +- entrypoint-user.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint-healthcheck.sh b/entrypoint-healthcheck.sh index b749262..96091ac 100755 --- a/entrypoint-healthcheck.sh +++ b/entrypoint-healthcheck.sh @@ -1,2 +1,2 @@ #!/bin/bash -exec gosu ${USERNAME} /app/*server monitor || exit 1 +exec gosu "${USERNAME}" /app/*server monitor || exit 1 diff --git a/entrypoint-user.sh b/entrypoint-user.sh index e2d4344..c9d3245 100755 --- a/entrypoint-user.sh +++ b/entrypoint-user.sh @@ -17,7 +17,7 @@ elif [ -d "/app/lgsm/modules" ]; then fi # Install game server -if [ -z "$(ls -A -- "serverfiles" 2> /dev/null)" ]; then +if [ -z "$(ls -A -- "/data/serverfiles" 2> /dev/null)" ]; then echo -e "" echo -e "Installing ${GAMESERVER}" echo -e "================================="