Clean up after recoveries

This commit is contained in:
Salt 2020-06-25 08:45:39 -05:00
parent d698f0b588
commit 8bdfd3936d

View File

@ -40,3 +40,9 @@ if [ -f "world/level.dat" ]; then
else
echo "Failed to recover from backup: $backup"
fi
# Remove the var dir, if it exists, because that's what it ends up being named
if [ -d "var" ]; then
# Never use relative paths with rm in a script
# That's heresy
rm -rf "/var/minecraft/{{{ mcname }}/var"
fi