Forráskód Böngészése

only rotate logs if server is off

Fixes #1318
UltimateByte 9 éve
szülő
commit
9d603d10ce
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      lgsm/functions/logs.sh

+ 2 - 1
lgsm/functions/logs.sh

@@ -16,7 +16,8 @@ if [ -n "${consolelog}" ]; then
 fi
 
 # For games not displaying a console, and having logs into their game directory
-if [ "${function_selfname}" == "command_start.sh" ] && [ -n "${gamelogfile}" ]; then
+check_status.sh
+if [ "${status}" != "0" ] && [ "${function_selfname}" == "command_start.sh" ] && [ -n "${gamelogfile}" ]; then
 	if [ -n "$(find "${systemdir}" -name "gamelog*.log")" ]; then
 		fn_print_info "Moving game logs to ${gamelogdir}"
 		fn_script_log_info "Moving game logs to ${gamelogdir}"