Merge pull request #365 from klightspeed/1.5-dev#warnwriteaccess

Warn when the SavedArks directory is not writable
This commit is contained in:
Fez Vrasta 2016-01-22 10:35:00 +01:00
commit f0b9f91397

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