Create the saved arks directory if it doesn't exist

This commit is contained in:
Ben Peddell 2016-07-10 18:44:49 +10:00
parent 12198f8f3c
commit b22b16b41d

View File

@ -202,6 +202,7 @@ checkConfig() {
# SavedArks directory
if [ -n "$arkserverroot" ]; then
local savedarksdir="${arkserverroot}/ShooterGame/Saved/${ark_AltSaveDirectoryName:-SavedArks}"
mkdir -p "${savedarksdir}"
if [ ! -w "${savedarksdir}" ]; then
echo -e "[" "$RED" "ERROR" "$NORMAL" "]" "\tThe ARK SavedArks directory is not writable, and saveworld will fail"
fi