Update cc-cleaner.sh
This commit is contained in:
@@ -10,7 +10,7 @@ echo ""
|
|||||||
|
|
||||||
read -n 1 -p "Are you sure you wish to remove Cluster Control and all data (Y/n)?" choice
|
read -n 1 -p "Are you sure you wish to remove Cluster Control and all data (Y/n)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Nn]) echo ''; exit 0;;
|
[Nn]) echo ''; ;;
|
||||||
* )
|
* )
|
||||||
echo ''
|
echo ''
|
||||||
apt remove --purge -y clustercontrol*
|
apt remove --purge -y clustercontrol*
|
||||||
@@ -27,8 +27,30 @@ case "$choice" in
|
|||||||
rm -Rf /etc/apache2
|
rm -Rf /etc/apache2
|
||||||
rm -Rf /var/www
|
rm -Rf /var/www
|
||||||
rm -Rf /etc/php
|
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
|
/root/install-cc --uninstall
|
||||||
|
rm -f /root/install-cc
|
||||||
|
|
||||||
echo '';;
|
echo '';;
|
||||||
esac
|
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
|
||||||
Reference in New Issue
Block a user