diff --git a/nextcloud_head.sh b/nextcloud_head.sh index 9c1ad26..45a5877 100644 --- a/nextcloud_head.sh +++ b/nextcloud_head.sh @@ -5,7 +5,7 @@ # File Created: Monday, 6th July 2020 11:05:48 am # Author: Thomas Brinkmann (doyl@dsh.icu) # ----- -# Last Modified: Monday, 6th July 2020 9:16:01 pm +# Last Modified: Monday, 6th July 2020 9:21:18 pm # Modified By: Thomas Brinkmann (doyl@dsh.icu>) # ----- # Copyright 2020 - Thomas Brinkmann. All Rights Reserved. @@ -134,6 +134,13 @@ install_Debian9(){ echo -e "\n\e[92mLogin details written to \e[93m/home/Nextclound-Login-Details-README.txt \e[39m" } +clean_up(){ + echo -e "\n\e[92mCleaning... \e[39m" + rm -R /home/nextcloud + rm /home/apt.gpg + rm /home/nextcloud-$LATEST_STABLE_RELEASE.zip +} + # CentOS vHOST # DocumentRoot /var/www/nextcloud/ # ServerName your.server.com @@ -183,11 +190,13 @@ if [ "$VAR_A" = "x86_64" ]; then #Debian 10 echo -e "\nDebian $version\e[39m" install_Debian9 # Currently it also works for Debian 10 + clean_up elif [ $version -eq 9 ]; then #Debian 9 Check echo -e "\nDebian $version\e[39m" install_Debian9 + clean_up