Make sure the old update files are removed after updating.

This commit is contained in:
purple 2023-06-12 16:35:15 +02:00
parent 33141eebad
commit 002027d20a
2 changed files with 2 additions and 0 deletions

View file

@ -441,6 +441,7 @@ if [[ $2 == "-upgrade" ]]; then
else else
bash tools/update.sh /var/www/$FOLDER bash tools/update.sh /var/www/$FOLDER
fi; fi;
rm -R tools/tmp/main;
log_bright "[INFO] Files have been upgraded, running installation script.."; log_bright "[INFO] Files have been upgraded, running installation script..";
chmod +x blueprint.sh; chmod +x blueprint.sh;
bash blueprint.sh --post-upgrade; bash blueprint.sh --post-upgrade;

View file

@ -21,5 +21,6 @@ else
fi; fi;
cp -R main/* $1/; cp -R main/* $1/;
rm -R main;
rm -R $1/.blueprint; rm -R $1/.blueprint;
rm -R *; rm -R *;