Browse Source

gamelogs now symlink

pull/820/merge
Daniel Gibbs 9 years ago
parent
commit
6f16645e29
  1. 2
      UnrealTournament99/ut99server
  2. 2
      lgsm/functions/install_logs.sh

2
UnrealTournament99/ut99server

@ -59,7 +59,7 @@ backupdir="${rootdir}/backups"
# Logging # Logging
logdays="7" logdays="7"
gamelogdir="${systemdir}/Logs/" gamelogdir="${filesdir}/Logs"
scriptlogdir="${rootdir}/log/script" scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console" consolelogdir="${rootdir}/log/console"
consolelogging="on" consolelogging="on"

2
lgsm/functions/install_logs.sh

@ -22,7 +22,7 @@ if [ -n "${consolelogdir}" ]; then
fi fi
# If a server is source or goldsource, Teamspeak 3, Starbound, Project Zomhoid create a symbolic link to the game server logs. # If a server is source or goldsource, Teamspeak 3, Starbound, Project Zomhoid create a symbolic link to the game server logs.
if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]||[ "${gamename}" == "Teamspeak 3" ]||[ "${engine}" == "starbound" ]||[ "${engine}" == "projectzomboid" ]; then if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]||[ "${gamename}" == "Teamspeak 3" ]||[ "${engine}" == "starbound" ]||[ "${engine}" == "projectzomboid" ]||[ "${engine}" == "unreal" ]; then
if [ ! -h "${rootdir}/log/server" ]; then if [ ! -h "${rootdir}/log/server" ]; then
ln -nfsv "${gamelogdir}" "${rootdir}/log/server" ln -nfsv "${gamelogdir}" "${rootdir}/log/server"
fi fi

Loading…
Cancel
Save