Browse Source
feat: add option to enable developer mode
pull/38/head
Daniel Gibbs
1 year ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
4 changed files with
9 additions and
0 deletions
-
Dockerfile.ubuntu-1804
-
Dockerfile.ubuntu-2004
-
Dockerfile.ubuntu-2204
-
entrypoint-user.sh
|
|
@ -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 |
|
|
|
|
|
@ -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 |
|
|
|
|
|
@ -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 |
|
|
|
|
|
@ -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 "" |
|
|
|