Browse Source

Fixed & simplified log rotation changes from my previous commit

pull/1882/head
UltimateByte 7 years ago
parent
commit
0a575f666d
  1. 6
      lgsm/functions/command_start.sh

6
lgsm/functions/command_start.sh

@ -74,11 +74,13 @@ fn_start_tmux(){
# Log rotation
fn_script_log_info "Rotating log files"
if [ "${engine}" == "unreal2" ]; then
if [ -f "${gamelog}" ]; then
if [ "${engine}" == "unreal2" ]&&[ -f "${gamelog}" ]; then
mv "${gamelog}" "${gamelogdate}"
fi
if [ -f "${lgsmlog}" ]; then
mv "${lgsmlog}" "${lgsmlogdate}"
fi
if [ -f "${consolelog}" ]; then
mv "${consolelog}" "${consolelogdate}"
fi

Loading…
Cancel
Save