mirror of
https://github.com/TotalFreedomMC/TF-Scripts.git
synced 2024-12-22 16:05:03 +00:00
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:
parent
5bd80cad35
commit
efe9315292
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue