From 292e5c91370b20ee6b9b702dfed40ab80a45b3fd Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Mon, 17 Aug 2020 01:12:13 +1000 Subject: [PATCH] Warn when Mods directory is not writable --- tools/arkmanager | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/arkmanager b/tools/arkmanager index a1a9fd0..06555fb 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -356,6 +356,11 @@ checkConfig() { if [ ! -w "${savedarksdir}" ]; then echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tThe ARK SavedArks directory is not writable, and saveworld will fail" >&2 fi + + mkdir -p "${arkserverroot}/${arkserverdir:-ShooterGame}/Content/Mods" + if [ ! -w "${arkserverroot}/${arkserverdir:-ShooterGame}/Content/Mods" ]; then + echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tThe ARK Mods directory is not writable, and installmod will fail" >&2 + fi fi if [ "$1" != "installmod" ] && [ "$1" != "installmods" ]; then