diff --git a/Dockerfile.ubuntu-1804 b/Dockerfile.ubuntu-1804 index 1006ebd..f1f6cf9 100644 --- a/Dockerfile.ubuntu-1804 +++ b/Dockerfile.ubuntu-1804 @@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log ENV LGSM_SERVERFILES=/data/serverfiles ENV LGSM_DATADIR=/data/data ENV LGSM_CONFIG=/data/config-lgsm +ENV LGSM_DEV=false ENV GAMESERVER=jc2server ENV UPDATE_CHECK=60 ENV USER=linuxgsm diff --git a/Dockerfile.ubuntu-2004 b/Dockerfile.ubuntu-2004 index 8719167..43565fb 100644 --- a/Dockerfile.ubuntu-2004 +++ b/Dockerfile.ubuntu-2004 @@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log ENV LGSM_SERVERFILES=/data/serverfiles ENV LGSM_DATADIR=/data/data ENV LGSM_CONFIG=/data/config-lgsm +ENV LGSM_DEV=false ENV GAMESERVER=jc2server ENV UPDATE_CHECK=60 ENV USER=linuxgsm diff --git a/Dockerfile.ubuntu-2204 b/Dockerfile.ubuntu-2204 index 60029a5..c8c824c 100644 --- a/Dockerfile.ubuntu-2204 +++ b/Dockerfile.ubuntu-2204 @@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log ENV LGSM_SERVERFILES=/data/serverfiles ENV LGSM_DATADIR=/data/data ENV LGSM_CONFIG=/data/config-lgsm +ENV LGSM_DEV=false ENV GAMESERVER=jc2server ENV UPDATE_CHECK=60 ENV USER=linuxgsm diff --git a/entrypoint-user.sh b/entrypoint-user.sh index 7455704..4238d64 100755 --- a/entrypoint-user.sh +++ b/entrypoint-user.sh @@ -30,6 +30,12 @@ elif [ -d "/app/lgsm/modules" ]; then chmod +x /app/lgsm/modules/* fi +# Enable developer mode +if [ "${LGSM_DEV}" == "true" ]; then + echo -e "developer mode enabled" + ./"${GAMESERVER}" developer +fi + # Install game server if [ -z "$(ls -A -- "/data/serverfiles" 2> /dev/null)" ]; then echo -e ""