Przeglądaj źródła

added option to check for update update on start

Daniel Gibbs 11 lat temu
rodzic
commit
db2b8fb107
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7 2
      functions/fn_start

+ 7 - 2
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