Skip to content

Commit e4e1d72

Browse files
committed
feat(docker): update datadir variable assignment
The code change updates the assignment of the `datadir` variable in the `linuxgsm.sh` script. The new assignment checks if the environment variable `LGSM_DATADIR` is set and uses its value, otherwise it falls back to using `${lgsmdir}/data`.
1 parent b59e09c commit e4e1d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linuxgsm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ steamcmddir="${HOME}/.steam/steamcmd"
3333
[ -n "${LGSM_SERVERFILES}" ] && serverfiles="${LGSM_SERVERFILES}" || serverfiles="${rootdir}/serverfiles"
3434
modulesdir="${lgsmdir}/modules"
3535
tmpdir="${lgsmdir}/tmp"
36-
datadir="${lgsmdir}/data"
36+
[ -n "${LGSM_DATADIR}" ] && datadir="${LGSM_DATADIR}" || datadir="${lgsmdir}/data"
3737
lockdir="${lgsmdir}/lock"
3838
sessionname="${selfname}"
3939
[ -f "${datadir}/${selfname}.uid" ] && socketname="${sessionname}-$(cat "${datadir}/${selfname}.uid")"

0 commit comments

Comments
 (0)