فهرست منبع

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 سال پیش
والد
کامیت
94a2f50d99
2فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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