mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 15:08:28 +00:00
Merge pull request #387 from klightspeed/1.5-dev#warnmodbranch
Warn of known issues when mod_branch=Linux
This commit is contained in:
commit
8f2c9d2b7d
@ -212,6 +212,11 @@ checkConfig() {
|
|||||||
done
|
done
|
||||||
fi
|
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
|
# Service configuration
|
||||||
# logdir
|
# logdir
|
||||||
if [ ! -w "$logdir" ] ; then
|
if [ ! -w "$logdir" ] ; then
|
||||||
@ -1198,7 +1203,7 @@ isModUpdateNeeded(){
|
|||||||
local modid=$1
|
local modid=$1
|
||||||
local modsrcdir="$steamcmdroot/steamapps/workshop/content/$mod_appid/$modid"
|
local modsrcdir="$steamcmdroot/steamapps/workshop/content/$mod_appid/$modid"
|
||||||
local moddestdir="$arkserverroot/ShooterGame/Content/Mods/$modid"
|
local moddestdir="$arkserverroot/ShooterGame/Content/Mods/$modid"
|
||||||
local modbranch="${mod_branch:-Linux}"
|
local modbranch="${mod_branch:-Windows}"
|
||||||
|
|
||||||
for varname in "${!mod_branch_@}"; do
|
for varname in "${!mod_branch_@}"; do
|
||||||
if [ "mod_branch_$modid" == "$varname" ]; then
|
if [ "mod_branch_$modid" == "$varname" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user