Browse Source
feat: Add LGSM_DATADIR environment variable
This commit adds the LGSM_DATADIR environment variable to the Dockerfiles and entrypoint.sh script. The variable is set to "/data/data" in all three Dockerfiles, and it is exported in the entrypoint.sh script. This allows for easy configuration of the data directory path for LinuxGSM.
pull/31/head
Daniel Gibbs
2 years ago
No known key found for this signature in database
GPG Key ID: 2076B128385E8C55
4 changed files with
6 additions and
1 deletions
Dockerfile.ubuntu-1804
Dockerfile.ubuntu-2004
Dockerfile.ubuntu-2204
entrypoint.sh
@ -14,6 +14,7 @@ ENV LGSM_GITHUBREPO=LinuxGSM
ENV LGSM_GITHUBBRANCH=master
ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm
ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=1800
@ -31,13 +32,13 @@ RUN echo "**** Install Base LinuxGSM Requirements ****" \
&& add-apt-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y \
cron \
bc \
binutils \
bsdmainutils \
bzip2 \
ca-certificates \
cpio \
cron \
curl \
distro-info \
file \
@ -14,6 +14,7 @@ ENV LGSM_GITHUBREPO=LinuxGSM
ENV LGSM_GITHUBBRANCH=master
ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm
ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=1800
@ -14,6 +14,7 @@ ENV LGSM_GITHUBREPO=LinuxGSM
ENV LGSM_GITHUBBRANCH=master
ENV LGSM_LOGDIR=/data/log
ENV LGSM_SERVERFILES=/data/serverfiles
ENV LGSM_DATADIR=/data/data
ENV LGSM_CONFIG=/data/config-lgsm
ENV GAMESERVER=jc2server
ENV UPDATE_CHECK=1800
@ -30,6 +30,7 @@ echo -e "LGSM_GITHUBREPO: ${LGSM_GITHUBREPO}"
echo -e " LGSM_GITHUBBRANCH: ${ LGSM_GITHUBBRANCH } "
echo -e " LGSM_LOGDIR: ${ LGSM_LOGDIR } "
echo -e " LGSM_SERVERFILES: ${ LGSM_SERVERFILES } "
echo -e " LGSM_DATADIR: ${ LGSM_DATADIR } "
echo -e " LGSM_CONFIG: ${ LGSM_CONFIG } "
echo -e ""
@ -41,6 +42,7 @@ export LGSM_GITHUBREPO=${LGSM_GITHUBREPO}
export LGSM_GITHUBBRANCH = ${ LGSM_GITHUBBRANCH }
export LGSM_LOGDIR = ${ LGSM_LOGDIR }
export LGSM_SERVERFILES = ${ LGSM_SERVERFILES }
export LGSM_DATADIR = ${ LGSM_DATADIR }
export LGSM_CONFIG = ${ LGSM_CONFIG }
cd /app || exit