From e5b909b0036ec9a105a1a094daf8806413300c22 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 23 Jul 2022 20:38:02 -0500 Subject: [PATCH] Update cc-cleaner.sh --- cc-cleaner.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/cc-cleaner.sh b/cc-cleaner.sh index ad8e14b..fad37b9 100755 --- a/cc-cleaner.sh +++ b/cc-cleaner.sh @@ -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 \ No newline at end of file