From db2b8fb107cd8c971b55d9337cadf66db2e1007a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 9 May 2015 20:37:27 +0100 Subject: [PATCH] added option to check for update update on start --- functions/fn_start | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/functions/fn_start b/functions/fn_start index c98bbae1b..c7e482711 100644 --- a/functions/fn_start +++ b/functions/fn_start @@ -2,7 +2,7 @@ # LGSM fn_start function # Author: Daniel Gibbs # Website: http://gameservermanagers.com -# Version: 070515 +# Version: 090515 # Description: Starts the server. @@ -171,10 +171,15 @@ else fn_printok "${servername}" fn_scriptlog "Started ${servername}" fi -#rm "${scriptlogdir}/.${servicename}-tmux-error.tmp" +rm "${scriptlogdir}/.${servicename}-tmux-error.tmp" echo -en "\n" } +# Will check for updates is updateonstart is yes +if [ "${updateonstart}" == "yes" ]||[ "${updateonstart}" == "1" ]; then + fn_update_check +fi + if [ "${gamename}" == "Teamspeak 3" ]; then fn_start_teamspeak3 else