Update cc-cleaner.sh

This commit is contained in:
2022-07-23 20:38:02 -05:00
parent c92a539e63
commit e5b909b003

View File

@@ -10,7 +10,7 @@ echo ""
read -n 1 -p "Are you sure you wish to remove Cluster Control and all data (Y/n)?" choice
case "$choice" in
[Nn]) echo ''; exit 0;;
[Nn]) echo ''; ;;
* )
echo ''
apt remove --purge -y clustercontrol*
@@ -27,8 +27,30 @@ case "$choice" in
rm -Rf /etc/apache2
rm -Rf /var/www
rm -Rf /etc/php
rm -Rf /root/.s9s
rm -Rf /etc/s9s.conf
rm -f /etc/ssl/certs/s9server*
rm -Rf /root/s9s_tmp
/root/install-cc --uninstall
rm -f /root/install-cc
echo '';;
esac
read -n 1 -p "Would you like to now re-install Cluster Control (Y/n)?" choice
case "$choice" in
[Nn]) echo ''; exit 0;;
* )
cd ~
wget https://severalnines.com/downloads/cmon/install-cc
chmod +x ./install-cc
./install-cc
/opt/copycerts.sh
apt install -y xtrabackup
esac
exit 0