Warn when Mods directory is not writable

This commit is contained in:
Ben Peddell 2020-08-17 01:12:13 +10:00 committed by GitHub
parent 065dcff488
commit 292e5c9137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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