Browse Source

Remove game log -- terraria doesn't have any

pull/478/head
Bryce Van Dyk 10 years ago
parent
commit
539e3bc360
  1. 3
      Terraria/terrariaserver
  2. 2
      functions/fn_install_logs

3
Terraria/terrariaserver

@ -50,8 +50,7 @@ backupdir="${rootdir}/backups"
# Logging # Logging
logdays="7" logdays="7"
# Terraria Doesn't Have a Server Log #gamelogdir="" # Terraria Doesn't Have a Server Log
gamelogdir=""
scriptlogdir="${rootdir}/log/script" scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console" consolelogdir="${rootdir}/log/console"

2
functions/fn_install_logs

@ -20,7 +20,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" ][ "${engine}" == "terraia" ]; then if [ "${engine}" == "source" ]||[ "${engine}" == "goldsource" ]||[ "${gamename}" == "Teamspeak 3" ]||[ "${engine}" == "starbound" ]||[ "${engine}" == "projectzomboid" ]; 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