Browse Source

Merge 3ce77a5b53 into 3c09e9ca75

pull/855/merge
Scott Smith 9 years ago
committed by GitHub
parent
commit
5903f07964
  1. 18
      lgsm/functions/install_logs.sh

18
lgsm/functions/install_logs.sh

@ -13,12 +13,16 @@ if [ "${checklogs}" != "1" ]; then
fi
sleep 1
# Create dir's for the script and console logs
mkdir -v "${rootdir}/log"
mkdir -v "${scriptlogdir}"
touch "${scriptlog}"
if [ -n "${consolelogdir}" ]; then
mkdir -v "${consolelogdir}"
touch "${consolelog}"
if [ -d "${rootdir}/log" ]; then
fn_print_warning_nl "Log folders already exist!"
else
mkdir -v "${rootdir}/log"
mkdir -v "${scriptlogdir}"
touch "${scriptlog}"
if [ -n "${consolelogdir}" ]; then
mkdir -v "${consolelogdir}"
touch "${consolelog}"
fi
fi
# If a server is source or goldsource, Teamspeak 3, Starbound, Project Zomhoid create a symbolic link to the game server logs.
@ -40,4 +44,4 @@ if [ -d "${rootdir}/Steam/logs" ]; then
fi
fi
sleep 1
fn_scriptlog "logs installed"
fn_scriptlog "logs installed"

Loading…
Cancel
Save