|
|
@@ -2,7 +2,7 @@
|
|
|
# LGSM fn_update_check function
|
|
|
# Author: Daniel Gibbs
|
|
|
# Website: http://gameservermanagers.com
|
|
|
-# Version: 301015
|
|
|
+# Version: 311015
|
|
|
|
|
|
# Description: Checks if a server update is available.
|
|
|
|
|
|
@@ -40,7 +40,7 @@ if [ "${appmanifestfilewc}" -ge "2" ]; then
|
|
|
for appfile in ${appmanifestfile}; do
|
|
|
echo " ${appfile}"
|
|
|
done
|
|
|
- exit
|
|
|
+ exit 1
|
|
|
else
|
|
|
sleep 1
|
|
|
fn_printok "Removed x${appmanifestfilewc1} appmanifest_${appid}.acf files"
|
|
|
@@ -56,7 +56,7 @@ elif [ "${appmanifestfilewc}" -eq "0" ]; then
|
|
|
if [ "${forceupdate}" -eq "1" ]; then
|
|
|
fn_printfail "Still no appmanifest_${appid}.acf found: Unable to update"
|
|
|
fn_scriptlog "Warning! Still no appmanifest_${appid}.acf found: Unable to update"
|
|
|
- exit
|
|
|
+ exit 1
|
|
|
fi
|
|
|
forceupdate=1
|
|
|
fn_printwarn "No appmanifest_${appid}.acf found"
|
|
|
@@ -128,7 +128,7 @@ if [ -z "${availablebuild}" ]; then
|
|
|
sleep 1
|
|
|
fn_printfailnl "Checking for update: SteamCMD: Not returning version info"
|
|
|
fn_scriptlog "Failure! Checking for update: SteamCMD: Not returning version info"
|
|
|
- exit
|
|
|
+ exit 1
|
|
|
else
|
|
|
fn_printok "Checking for update: SteamCMD"
|
|
|
fn_scriptlog "Success! Checking for update: SteamCMD"
|
|
|
@@ -205,7 +205,7 @@ if [ -z "$(find ./* -name 'ts3server*_0.log')" ]; then
|
|
|
if [ -z "$(find ./* -name 'ts3server*_0.log')" ]; then
|
|
|
fn_printfailnl "Checking for update: teamspeak.com: Still No logs with server version found"
|
|
|
fn_scriptlog "Failure! Checking for update: teamspeak.com: Still No logs with server version found"
|
|
|
- exit
|
|
|
+ exit 1
|
|
|
fi
|
|
|
fi
|
|
|
currentbuild=$(cat $(find ./* -name 'ts3server*_0.log' 2> /dev/null | sort | egrep -E -v '${rootdir}/.ts3version' | tail -1) | egrep -o 'TeamSpeak 3 Server ((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}' | egrep -o '((\.)?[0-9]{1,3}){1,3}\.[0-9]{1,3}')
|
|
|
@@ -245,7 +245,7 @@ if [ -z "${availablebuild}" ]; then
|
|
|
fn_printfail "Checking for update: teamspeak.com: Not returning version info"
|
|
|
fn_scriptlog "Failure! Checking for update: teamspeak.com: Not returning version info"
|
|
|
sleep 2
|
|
|
- exit
|
|
|
+ exit 1
|
|
|
else
|
|
|
fn_printok "Checking for update: teamspeak.com"
|
|
|
fn_scriptlog "Success! Checking for update: teamspeak.com"
|