Create cc-cleaner.sh

This commit is contained in:
2022-03-28 21:42:25 -05:00
parent f24ff419fb
commit 86662d6622

28
cc-cleaner.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
source /dev/stdin <<< "$(curl -sL http://scity.xyz/colorsinc)"
source /dev/stdin <<< "$(curl -sL http://scity.xyz/defaultinc)"
echo ""
echo -e "${idsCL[LightGreen]}Cluster Control Removal Script${idsCL[Default]}"
echo ""
apt remove --purge clustercontrol*
rm -Rf /etc/cmon.d
rm -Rf /var/www/clustercontrol
apt remove --purge mysql-server*
rm -Rf /var/lib/cmon
rm -Rf /var/lib/prometheus
apt remove --purge "mysql*"
apt remove --purge "*s9s*"
apt autoremove
apt clean
apt remove --purge apache2
rm -Rf /etc/apache2
rm -Rf /var/www
apt remove --purge "php*"
rm -Rf /etc/php
install-cc uninstall