Browse Source

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.
pull/368/head
Daniel Gibbs 10 years ago
parent
commit
94a2f50d99
  1. 3
      functions/fn_getopt
  2. 1
      functions/fn_update_check

3
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
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

Loading…
Cancel
Save