mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
feat(docker): create ENV for directory changes in docker
adds ability to update some variables using ENV variables in docker. a
This commit is contained in:
parent
9a0df53b97
commit
f2779d1b2d
@ -28,17 +28,17 @@ rootdir=$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")
|
||||
selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
|
||||
sessionname=$(echo "${selfname}" | cut -f1 -d".")
|
||||
lgsmdir="${rootdir}/lgsm"
|
||||
logdir="${rootdir}/log"
|
||||
[ -n "${LGSM_LOGDIR}" ] && logdir="${LGSM_LOGDIR}" || logdir="${rootdir}/log"
|
||||
lgsmlogdir="${logdir}/lgsm"
|
||||
steamcmddir="${HOME}/.steam/steamcmd"
|
||||
serverfiles="${rootdir}/serverfiles"
|
||||
[ -n "${LGSM_SERVERFILES}" ] && serverfiles="${LGSM_SERVERFILES}" || serverfiles="${rootdir}/serverfiles"
|
||||
modulesdir="${lgsmdir}/modules"
|
||||
tmpdir="${lgsmdir}/tmp"
|
||||
datadir="${lgsmdir}/data"
|
||||
lockdir="${lgsmdir}/lock"
|
||||
serverlist="${datadir}/serverlist.csv"
|
||||
serverlistmenu="${datadir}/serverlistmenu.csv"
|
||||
configdir="${lgsmdir}/config-lgsm"
|
||||
[ -n "${LGSM_CONFIG}" ] && configdir="${LGSM_CONFIG}" || configdir="${lgsmdir}/config-lgsm"
|
||||
configdirserver="${configdir}/${gameservername}"
|
||||
configdirdefault="${lgsmdir}/config-default"
|
||||
userinput="${1}"
|
||||
|
Loading…
Reference in New Issue
Block a user