From f423f4d6acd8c4114e8cffc509aeaa4477caaab9 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 30 Apr 2017 21:49:07 +0100 Subject: [PATCH] fixes #1345 --- lgsm/functions/command_start.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/command_start.sh b/lgsm/functions/command_start.sh index 6a20a0e23..bc24cd6cb 100644 --- a/lgsm/functions/command_start.sh +++ b/lgsm/functions/command_start.sh @@ -31,8 +31,9 @@ fn_start_teamspeak3(){ fn_script_log_error "${servername} is already running" core_exit.sh fi - - mv "${scriptlog}" "${scriptlogdate}" + if [ -f "${scriptlog}" ]; then + mv "${scriptlog}" "${scriptlogdate}" + fi # Create lockfile date > "${rootdir}/${lockselfname}" cd "${executabledir}" @@ -56,7 +57,7 @@ fn_start_teamspeak3(){ fn_start_tmux(){ fn_parms - + # check for tmux size variables if [[ "${servercfgtmuxwidth}" =~ ^[0-9]+$ ]]; then sessionwidth="${servercfgtmuxwidth}"