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