Jelajahi Sumber

Added update-restart back in

update-restart option is now available again however it is not listed.
There is no need to use this option anymore and it behaves axactly the
same as force-update however I have put is back in for legacy reasons
just in case some cronjobs are still using it.
Daniel Gibbs 11 tahun lalu
induk
melakukan
94a2f50d99
2 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 3 0
      functions/fn_getopt
  2. 1 0
      functions/fn_update_check

+ 3 - 0
functions/fn_getopt

@@ -19,6 +19,9 @@ case "$getopt" in
 	force-update)
 		forceupdate=1;
 		fn_update_check;;
+	update-restart)
+		forceupdate=1;
+		fn_update_check;;
 	validate)
 		fn_validate;;
 	monitor)

+ 1 - 0
functions/fn_update_check

@@ -286,6 +286,7 @@ if [ "${gamename}" == "Teamspeak 3" ]; then
 	fn_teamspeak3_check
 elif [ "${engine}" == "goldsource" ]||[ "${forceupdate}" == "1" ]; then
 	# Goldsource servers bypass checks as fn_steamcmdcheck does not work for appid 90 servers.
+	# forceupdate bypasses checks
 	tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
 	if [ "${tmuxwc}" -eq 1 ]; then
 		fn_stop