Add some comments and also ensure we archive spawn.yml

The spawn.yml means sometimes the default spawn point ends up in strange places, we don't want that.
This commit is contained in:
Wild1145 2021-07-03 16:13:56 +01:00
parent 5bd80cad35
commit efe9315292

View file

@ -47,6 +47,7 @@ else
fi
done
# Archives out the CoreProtect Database for history.
if ls /home/tfserver/plugins/CoreProtect-* 1> /dev/null 2>&1;
then
mysqldump -h $DB_HOSTNAME $CO_DATABASE --no-tablespaces > $CO_DATABASE-$TIMESTAMP.sql
@ -58,6 +59,13 @@ else
mysql $CO_DATABASE -h $DB_HOSTNAME < ./temp.sql
fi
# Archives out the Essentials spawnpoints for history.
if ls /home/tfserver/plugins/Essentials-* 1> /dev/null 2>&1;
then
mv /home/tfserver/plugins/Essentials/spawn.yml /home/tfserver/archives/Essentials-spawn.yml-$TIMESTAMP.yml
echo "Essentials Spawn Configuration downloaded to /home/tfserver/archives/$CO_DATABASE-$TIMESTAMP.sql"
fi
cp -R /home/tfserver/template/$1 /home/tfserver/world
# Remove that lock file now that we actually want to start the server up.