Update cc-cleaner.sh

This commit is contained in:
2022-07-23 20:17:33 -05:00
parent b2b7731f2c
commit 7a917cd031

View File

@@ -8,7 +8,10 @@ echo ""
echo -e "${idsCL[LightGreen]}Cluster Control Removal Script${idsCL[Default]}" echo -e "${idsCL[LightGreen]}Cluster Control Removal Script${idsCL[Default]}"
echo "" echo ""
read -n 1 -p "Are you sure you wish to remove Cluster Control and all data (Y/n)?" choice
case "$choice" in
[Nn]) exit 0;;
* )
apt remove --purge clustercontrol* apt remove --purge clustercontrol*
apt remove --purge mysql-server* apt remove --purge mysql-server*
apt remove --purge "mysql*" "*s9s*" apache2 "php*" apt remove --purge "mysql*" "*s9s*" apache2 "php*"
@@ -24,5 +27,6 @@ rm -Rf /etc/apache2
rm -Rf /var/www rm -Rf /var/www
rm -Rf /etc/php rm -Rf /etc/php
install-cc uninstall install-cc uninstall;;
esac