From 002027d20ada405ca959ad4661f5d9767d0d6584 Mon Sep 17 00:00:00 2001 From: purple Date: Mon, 12 Jun 2023 16:35:15 +0200 Subject: [PATCH] Make sure the old update files are removed after updating. --- blueprint.sh | 1 + tools/update.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/blueprint.sh b/blueprint.sh index 649ab43..5d44da0 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -441,6 +441,7 @@ if [[ $2 == "-upgrade" ]]; then else bash tools/update.sh /var/www/$FOLDER fi; + rm -R tools/tmp/main; log_bright "[INFO] Files have been upgraded, running installation script.."; chmod +x blueprint.sh; bash blueprint.sh --post-upgrade; diff --git a/tools/update.sh b/tools/update.sh index 6fa7eca..75d8e31 100644 --- a/tools/update.sh +++ b/tools/update.sh @@ -21,5 +21,6 @@ else fi; cp -R main/* $1/; +rm -R main; rm -R $1/.blueprint; rm -R *;