|
@@ -271,6 +271,16 @@ fi
|
|
|
fn_printdots "Checking for update"
|
|
fn_printdots "Checking for update"
|
|
|
if [ "${gamename}" == "Teamspeak 3" ]; then
|
|
if [ "${gamename}" == "Teamspeak 3" ]; then
|
|
|
fn_teamspeak3_check
|
|
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
|
|
else
|
|
|
fn_logupdaterequest
|
|
fn_logupdaterequest
|
|
|
fn_steamcmdcheck
|
|
fn_steamcmdcheck
|