File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log
1616ENV LGSM_SERVERFILES=/data/serverfiles
1717ENV LGSM_DATADIR=/data/data
1818ENV LGSM_CONFIG=/data/config-lgsm
19+ ENV LGSM_DEV=false
1920ENV GAMESERVER=jc2server
2021ENV UPDATE_CHECK=60
2122ENV USER=linuxgsm
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log
1616ENV LGSM_SERVERFILES=/data/serverfiles
1717ENV LGSM_DATADIR=/data/data
1818ENV LGSM_CONFIG=/data/config-lgsm
19+ ENV LGSM_DEV=false
1920ENV GAMESERVER=jc2server
2021ENV UPDATE_CHECK=60
2122ENV USER=linuxgsm
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ ENV LGSM_LOGDIR=/data/log
1616ENV LGSM_SERVERFILES=/data/serverfiles
1717ENV LGSM_DATADIR=/data/data
1818ENV LGSM_CONFIG=/data/config-lgsm
19+ ENV LGSM_DEV=false
1920ENV GAMESERVER=jc2server
2021ENV UPDATE_CHECK=60
2122ENV USER=linuxgsm
@@ -104,7 +105,7 @@ RUN echo "**** Add linuxgsm user ****" \
104105 && chmod 0440 /etc/sudoers.d/$USER \
105106 && chown $USER:$USER /data
106107
107- HEALTHCHECK --interval=1m --timeout=1m --start-period=2m --retries=1 CMD /app/entrypoint-healthcheck.sh || exit 1
108+ HEALTHCHECK --interval=1m --timeout=1m --start-period=5m --retries=1 CMD /app/entrypoint-healthcheck.sh || exit 1
108109
109110## Download linuxgsm.sh
110111RUN echo "**** Download linuxgsm.sh ****" \
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ exit_handler_user() {
1212echo -e " Loading exit handler"
1313trap exit_handler_user SIGQUIT SIGINT SIGTERM
1414
15+
16+
1517# Setup game server
1618if [ ! -f " ${GAMESERVER} " ]; then
1719 echo -e " "
@@ -30,6 +32,12 @@ elif [ -d "/app/lgsm/modules" ]; then
3032 chmod +x /app/lgsm/modules/*
3133fi
3234
35+ # Enable developer mode
36+ if [ " ${LGSM_DEV} " == " true" ]; then
37+ echo -e " developer mode enabled"
38+ ./" ${GAMESERVER} " developer
39+ fi
40+
3341# Install game server
3442if [ -z " $( ls -A -- " /data/serverfiles" 2> /dev/null) " ]; then
3543 echo -e " "
You can’t perform that action at this time.
0 commit comments