From d37176adbbd7ce4dfed923c7631c718166c0f589 Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Thu, 28 Jan 2016 18:00:44 +1000 Subject: [PATCH] Warn when a mod is requested but not installed --- tools/arkmanager | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/arkmanager b/tools/arkmanager index 83a8489..dc6089f 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -203,6 +203,15 @@ checkConfig() { 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 # logdir if [ ! -w "$logdir" ] ; then