Ver Fonte

added force-update option

The update checker is not detecting updates as SteamCMD is not always
returning the latest release number. I dont know why SteamCMD is doing
this.

I have added force-update which will simply force an update without
checking first (the server will restart)

I recommend using update once an hour and force-update daily.
Daniel Gibbs há 11 anos atrás
pai
commit
672558e335
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      functions/fn_getopt

+ 3 - 1
functions/fn_getopt

@@ -2,7 +2,7 @@
 # LGSM fn_getopt function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-# Version: 150414
+# Version: 060514
 
 # Description: getopt arguments.
 
@@ -16,6 +16,8 @@ case "$getopt" in
 		fn_restart;;
 	update)
 		fn_update_check;;
+	force-update)
+		fn_update_dl;;
 	validate)
 		fn_validate;;
 	monitor)