From 2834685a01f17bb5a2b43a94e4b249497da5f0ef Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 20 Aug 2017 20:15:25 +0100 Subject: [PATCH] Fixed legacy scripts unable to create tmpdir --- lgsm/functions/core_functions.sh | 6 +++--- lgsm/functions/core_legacy.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index 07984894a..0d2bed893 100644 --- a/lgsm/functions/core_functions.sh +++ b/lgsm/functions/core_functions.sh @@ -566,14 +566,14 @@ functionfile="${FUNCNAME}" fn_fetch_function } +# Calls code required for legacy servers +core_legacy.sh + # Creates tmp dir if missing if [ ! -d "${tmpdir}" ]; then mkdir -p "${tmpdir}" fi -# Calls code required for legacy servers -core_legacy.sh - # Calls on-screen messages (bootstrap) core_messages.sh diff --git a/lgsm/functions/core_legacy.sh b/lgsm/functions/core_legacy.sh index 105659510..a6443e9bd 100644 --- a/lgsm/functions/core_legacy.sh +++ b/lgsm/functions/core_legacy.sh @@ -28,3 +28,11 @@ fi if [ -z "${steamcmddir}" ]; then steamcmddir="${rootdir}/steamcmd" fi + +if [ -z "${lgsmdir}" ]; then + lgsmdir="${rootdir}/lgsm" +fi + +if [ -z "${tmpdir}" ]; then + tmpdir="${lgsmdir}/tmp" +fi