From 324fa47b2ad4595549135f29a426e30d36b4545c Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 11 May 2017 19:57:54 +0100 Subject: [PATCH] Legacy: getting logs to work --- lgsm/functions/core_legacy.sh | 6 +++++- lgsm/functions/install_logs.sh | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lgsm/functions/core_legacy.sh b/lgsm/functions/core_legacy.sh index e7938e16d..f309894a6 100644 --- a/lgsm/functions/core_legacy.sh +++ b/lgsm/functions/core_legacy.sh @@ -4,6 +4,10 @@ # Website: https://gameservermanagers.com # Description: Code for backwards compatability with older versions of LinuxGSM. -if [ -z ${serverfiles} ]; then +if [ -z "${serverfiles}" ]; then serverfiles="${filesdir}" +fi + +if [ -z "${logdir}" ]; then + logdir="${rootdir}/log" fi \ No newline at end of file diff --git a/lgsm/functions/install_logs.sh b/lgsm/functions/install_logs.sh index 65a09ed18..bcadafc36 100644 --- a/lgsm/functions/install_logs.sh +++ b/lgsm/functions/install_logs.sh @@ -15,11 +15,11 @@ if [ "${checklogs}" != "1" ]; then fi sleep 1 # Create script and console log directories -mkdir -v "${logdir}" -mkdir -v "${scriptlogdir}" +mkdir -pv "${logdir}" +mkdir -pv "${scriptlogdir}" touch "${scriptlog}" if [ -n "${consolelogdir}" ]; then - mkdir -v "${consolelogdir}" + mkdir -pv "${consolelogdir}" touch "${consolelog}" fi