Browse Source

Bypass steamcmd checks for non-steamcmd servers

Daniel Gibbs 10 years ago
parent
commit
f2d2467cbb
2 changed files with 6 additions and 2 deletions
  1. 5 1
      functions/check.sh
  2. 1 1
      functions/check_steamcmd.sh

+ 5 - 1
functions/check.sh

@@ -45,7 +45,11 @@ local allowed_commands_array=( command_debug.sh command_start.sh command_stop.sh
 for allowed_command in "${allowed_commands_array[@]}"
 for allowed_command in "${allowed_commands_array[@]}"
 do
 do
 	if [ "${allowed_command}" == "${function_selfname}" ]; then
 	if [ "${allowed_command}" == "${function_selfname}" ]; then
-		check_steamcmd.sh
+		if [ "${gamename}" == "Unreal Tournament 99" ]||[ "${gamename}" == "Unreal Tournament 2004" ]||[ "${gamename}" == "Mumble" ]||[ "${gamename}" == "Teamspeak 3" ]; then
+			: # These servers do not require SteamCMD. Check is skipped.
+		else
+			check_steamcmd.sh
+		fi
 	fi
 	fi
 done
 done
 
 

+ 1 - 1
functions/check_steamcmd.sh

@@ -7,7 +7,7 @@ lgsm_version="281215"
 # Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD
 # Description: Downloads SteamCMD on install and checks if missing before running functions that require SteamCMD
 
 
 
 
-if [ "${gamename}" == "Unreal Tournament 99" ]||[ "${gamename}" == "Unreal Tournament 2004" ]||[ "${gamename}" == "Mumble" ]; then
+if [ "${gamename}" == "Unreal Tournament 99" ]||[ "${gamename}" == "Unreal Tournament 2004" ]||[ "${gamename}" == "Mumble" ]||[ "${gamename}" == "Teamspeak 3" ]; then
 	: # These servers do not require SteamCMD. Check is skipped.
 	: # These servers do not require SteamCMD. Check is skipped.
 else
 else
 	# Checks steamuser is setup. 
 	# Checks steamuser is setup.