From f6fbceb62d3499d20906a2b24fc0b55b69602a31 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 16 May 2015 00:49:31 +0100 Subject: [PATCH] Moved ts3server log checking to fn_check_logs --- functions/fn_start | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/functions/fn_start b/functions/fn_start index 7bed76b69..ad023c663 100644 --- a/functions/fn_start +++ b/functions/fn_start @@ -9,19 +9,9 @@ local modulename="Starting" fn_start_teamspeak3(){ -# Create any missing log dirs -if [ ! -d "${scriptlogdir}" ];then - mkdir "${rootdir}/log" - mkdir "${scriptlogdir}" - fn_printinfo "Creating log directorys ${scriptlogdir}" - fn_scriptlog "Creating log directorys ${scriptlogdir}" -fi -if [ ! -h "${rootdir}/log/server" ]; then - ln -sv "${gamelogdir} ${rootdir}/log/server" -fi - fn_check_root fn_check_systemdir +fn_check_logs fn_check_ts3status if [ "${ts3status}" = "Server is running" ]; then fn_printinfo "${servername} is already running"