Browse Source

feat: add option to enable developer mode

pull/38/head
Daniel Gibbs 1 year ago
parent
commit
724d1fc418
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 1
      Dockerfile.ubuntu-1804
  2. 1
      Dockerfile.ubuntu-2004
  3. 1
      Dockerfile.ubuntu-2204
  4. 6
      entrypoint-user.sh

1
Dockerfile.ubuntu-1804

@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm ENV LGSM_CONFIG=/data/config-lgsm
ENV LGSM_DEV=false
ENV GAMESERVER=jc2server ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=60 ENV UPDATE_CHECK=60
ENV USER=linuxgsm ENV USER=linuxgsm

1
Dockerfile.ubuntu-2004

@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm ENV LGSM_CONFIG=/data/config-lgsm
ENV LGSM_DEV=false
ENV GAMESERVER=jc2server ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=60 ENV UPDATE_CHECK=60
ENV USER=linuxgsm ENV USER=linuxgsm

1
Dockerfile.ubuntu-2204

@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm ENV LGSM_CONFIG=/data/config-lgsm
ENV LGSM_DEV=false
ENV GAMESERVER=jc2server ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=60 ENV UPDATE_CHECK=60
ENV USER=linuxgsm ENV USER=linuxgsm

6
entrypoint-user.sh

@ -30,6 +30,12 @@ elif [ -d "/app/lgsm/modules" ]; then
chmod +x /app/lgsm/modules/* chmod +x /app/lgsm/modules/*
fi fi
# Enable developer mode
if [ "${LGSM_DEV}" == "true" ]; then
echo -e "developer mode enabled"
./"${GAMESERVER}" developer
fi
# Install game server # Install game server
if [ -z "$(ls -A -- "/data/serverfiles" 2> /dev/null)" ]; then if [ -z "$(ls -A -- "/data/serverfiles" 2> /dev/null)" ]; then
echo -e "" echo -e ""

Loading…
Cancel
Save