mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 08:48:27 +00:00
Warn when a mod is requested but not installed
This commit is contained in:
parent
7786ad884e
commit
d37176adbb
@ -203,6 +203,15 @@ checkConfig() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Warn if any mods are requested but not installed
|
||||||
|
if [ -n "$arkserverroot" -a -a -d "${arkserverroot}/ShooterGame/Content/Mods" ]; then
|
||||||
|
for modid in $(getModIds); do
|
||||||
|
if [ ! -f "${arkserverroot}/ShooterGame/Content/Mods/${modid}/mod.info" ]; then
|
||||||
|
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tMod ${modid} is requested but not installed. Run 'arkmanager installmod ${modid}' to install this mod."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# Service configuration
|
# Service configuration
|
||||||
# logdir
|
# logdir
|
||||||
if [ ! -w "$logdir" ] ; then
|
if [ ! -w "$logdir" ] ; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user