mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-27 16:58:27 +00:00
Warn when Mods directory is not writable
This commit is contained in:
parent
065dcff488
commit
292e5c9137
@ -356,6 +356,11 @@ checkConfig() {
|
|||||||
if [ ! -w "${savedarksdir}" ]; then
|
if [ ! -w "${savedarksdir}" ]; then
|
||||||
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tThe ARK SavedArks directory is not writable, and saveworld will fail" >&2
|
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tThe ARK SavedArks directory is not writable, and saveworld will fail" >&2
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
if [ "$1" != "installmod" ] && [ "$1" != "installmods" ]; then
|
if [ "$1" != "installmod" ] && [ "$1" != "installmods" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user