Merge pull request #387 from klightspeed/1.5-dev#warnmodbranch

Warn of known issues when mod_branch=Linux
This commit is contained in:
Fez Vrasta 2016-02-05 19:40:48 +01:00
commit 8f2c9d2b7d

View File

@ -212,6 +212,11 @@ checkConfig() {
done
fi
# Warn if mod_branch=Linux
if [ "$mod_branch" == "Linux" -a -z "$nowarnmodbranch" ]; then
echo -e "[" "$YELLOW" "WARN" "$NORMAL" "]" "\tmod_branch is set to Linux. Linux mods are known to cause the server to crash. It is suggested you set mod_branch to Windows."
fi
# Service configuration
# logdir
if [ ! -w "$logdir" ] ; then
@ -1198,7 +1203,7 @@ isModUpdateNeeded(){
local modid=$1
local modsrcdir="$steamcmdroot/steamapps/workshop/content/$mod_appid/$modid"
local moddestdir="$arkserverroot/ShooterGame/Content/Mods/$modid"
local modbranch="${mod_branch:-Linux}"
local modbranch="${mod_branch:-Windows}"
for varname in "${!mod_branch_@}"; do
if [ "mod_branch_$modid" == "$varname" ]; then