From 9886ae046ad3ce5d9ba2077143ffcdbd3b9cfeb2 Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 25 Jun 2020 08:57:24 -0500 Subject: [PATCH] Also clean up more after script end --- roles/minecraft/templates/recover.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/minecraft/templates/recover.sh b/roles/minecraft/templates/recover.sh index 76e4626..d9a0268 100644 --- a/roles/minecraft/templates/recover.sh +++ b/roles/minecraft/templates/recover.sh @@ -46,3 +46,7 @@ if [ -d "var" ]; then # That's heresy rm -rf "/var/minecraft/{{ mcname }}/var" fi +# Remove our old world.tgz +if [ -f "world.tgz" ]; then + rm "/var/minecraft/{{ mcname }}/world.tgz" +fi