Browse Source

Legacy: getting logs to work

pull/1477/head
Daniel Gibbs 8 years ago
parent
commit
324fa47b2a
  1. 6
      lgsm/functions/core_legacy.sh
  2. 6
      lgsm/functions/install_logs.sh

6
lgsm/functions/core_legacy.sh

@ -4,6 +4,10 @@
# Website: https://gameservermanagers.com # Website: https://gameservermanagers.com
# Description: Code for backwards compatability with older versions of LinuxGSM. # Description: Code for backwards compatability with older versions of LinuxGSM.
if [ -z ${serverfiles} ]; then if [ -z "${serverfiles}" ]; then
serverfiles="${filesdir}" serverfiles="${filesdir}"
fi fi
if [ -z "${logdir}" ]; then
logdir="${rootdir}/log"
fi

6
lgsm/functions/install_logs.sh

@ -15,11 +15,11 @@ if [ "${checklogs}" != "1" ]; then
fi fi
sleep 1 sleep 1
# Create script and console log directories # Create script and console log directories
mkdir -v "${logdir}" mkdir -pv "${logdir}"
mkdir -v "${scriptlogdir}" mkdir -pv "${scriptlogdir}"
touch "${scriptlog}" touch "${scriptlog}"
if [ -n "${consolelogdir}" ]; then if [ -n "${consolelogdir}" ]; then
mkdir -v "${consolelogdir}" mkdir -pv "${consolelogdir}"
touch "${consolelog}" touch "${consolelog}"
fi fi

Loading…
Cancel
Save