Browse Source

only rotate logs if server is off

Fixes #1318
pull/1323/head
UltimateByte 8 years ago
committed by GitHub
parent
commit
9d603d10ce
  1. 3
      lgsm/functions/logs.sh

3
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}"

Loading…
Cancel
Save