Jelajahi Sumber

start fixes and install fixes kept apart.

Daniel Gibbs 10 tahun lalu
induk
melakukan
8f851c5ed3

+ 1 - 0
functions/command_debug.sh

@@ -10,6 +10,7 @@ local modulename="Debug"
 function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 check.sh
+fix.sh
 info_distro.sh
 fn_parms
 echo ""

+ 17 - 10
functions/fix.sh

@@ -7,21 +7,28 @@ lgsm_version="301215"
 # Description: Overall function for managing fixes.
 # Runs functions that will fix an issue.
 
-if [ ! -z "${appid}" ]; then
-	fix_steamcmd.sh
-fi
+# Fixes that are run on start
+if [ "${function_selfname}" != "command_install.sh" ]; then
+	if [ ! -z "${appid}" ]; then
+		fix_steamcmd.sh
+	fi	
 
-if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
-	startfix=1
-	fix_csgo.sh
-elif [ "${gamename}" == "Insurgency" ]; then
-	fix_ins.sh
-elif [ "${gamename}" == "ARMA 3" ]; then
-	fix_arma3.sh	
+	if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
+		startfix=1
+		fix_csgo.sh
+	elif [ "${gamename}" == "Insurgency" ]; then
+		fix_ins.sh
+	elif [ "${gamename}" == "ARMA 3" ]; then
+		fix_arma3.sh	
+	fi
 fi
 
+# Fixes that are run on install only.
 if [ "${function_selfname}" == "command_install.sh" ]; then
 	fix_glibc.sh
+	echo ""
+	echo "Applying ${gamename} Server Fixes"
+	echo "================================="
 	if [ "${gamename}" == "Killing Floor" ]; then
 		fix_kf.sh
 	elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then

+ 0 - 2
functions/fix_kf.sh

@@ -4,8 +4,6 @@
 # Website: http://gameservermanagers.com
 lgsm_version="271215"
 
-echo "Applying ${gamename} Server Fixes"
-echo "================================="
 echo "Applying WebAdmin ROOst.css fix."
 echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
 sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ROOst.css"

+ 0 - 2
functions/fix_ro.sh

@@ -4,8 +4,6 @@
 # Website: http://gameservermanagers.com
 lgsm_version="271215"
 
-echo "Applying ${gamename} Server Fixes"
-echo "================================="
 echo "Applying WebAdmin ROOst.css fix."
 echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
 sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ROOst.css"

+ 0 - 2
functions/fix_ut2k4.sh

@@ -4,8 +4,6 @@
 # Website: http://gameservermanagers.com
 lgsm_version="271215"
 
-echo "Applying ${gamename} Server Fixes"
-echo "================================="
 echo "applying WebAdmin ut2003.css fix."
 echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
 sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ut2003.css"

+ 0 - 2
functions/fix_ut99.sh

@@ -4,8 +4,6 @@
 # Website: http://gameservermanagers.com
 lgsm_version="271215"
 
-echo "Applying ${gamename} Server Fixes"
-echo "================================="
 echo "enabling UdpServerUplink."
 {
 echo "[IpServer.UdpServerUplink]"