Browse Source

Added fn_steamcmdcheck bypass for goldsource

Goldsource servers will now bypass checks as fn_steamcmdcheck does not
work for appid 90 servers. I might be able to get this to work however
it is rather complicated. This may be something I do in the future
Daniel Gibbs 11 years ago
parent
commit
c62af53ba3
1 changed files with 10 additions and 0 deletions
  1. 10 0
      functions/fn_update_check

+ 10 - 0
functions/fn_update_check

@@ -271,6 +271,16 @@ fi
 fn_printdots "Checking for update"
 if [ "${gamename}" == "Teamspeak 3" ]; then
 	fn_teamspeak3_check
+if [ "${engine}" == "goldsource" ]; then
+	# Goldsource servers bypass checks as fn_steamcmdcheck does not work for appid 90 servers.
+	tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -E "^${servicename}:"|wc -l)
+	if [ "${tmuxwc}" -eq 1 ]; then
+		fn_stop
+		fn_update_dl
+		fn_start
+	else
+		fn_update_dl
+	fi
 else
 	fn_logupdaterequest
 	fn_steamcmdcheck