Warn when the SavedArks directory is not writable

This commit is contained in:
Ben Peddell 2016-01-22 19:09:43 +10:00
parent ab6bf806dc
commit 326d753b40

View File

@ -195,6 +195,14 @@ checkConfig() {
echo -e "[" "$YELLOW" "WARN" "$NORMAL" "]" "\tYour ARK server exec could not be found."
fi
# SavedArks directory
if [ -n "$arkserverroot" ]; then
local savedarksdir="${arkserverroot}/ShooterGame/Saved/${ark_AltSaveDirectoryName:-SavedArks}"
if [ ! -w "${savedarksdir}" ]; then
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tThe ARK SavedArks directory is not writable, and saveworld will fail"
fi
fi
# Service configuration
# logdir
if [ ! -w "$logdir" ] ; then