From a83ec2f4d6e2109734d496d385f304295e2fbb18 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 30 May 2023 19:51:05 -0500 Subject: [PATCH] Update cc-cleaner.sh --- cc-cleaner.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/cc-cleaner.sh b/cc-cleaner.sh index 85851e9..1429feb 100755 --- a/cc-cleaner.sh +++ b/cc-cleaner.sh @@ -55,20 +55,20 @@ case "$choice" in [Nn]) echo ''; exit 0;; * ) - # ./install-cc - # - # /opt/copycerts.sh - # apt install -y mailutils xtrabackup - # - # echo - # echo - # read -p "Enter the admin password for MySQL: " pwd - # echo "Enter the root password for adding back in the admin user for MySQL:" - # mysql -u root -p -e "CREATE USER 'admin'@'%' IDENTIFIED BY '${pwd}';GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;" - # ;; - - # read -n 1 -p "Login at https://mysql.scity.us and setup the admin user, once complete then press ENTER" choice - # + ./install-cc + + /opt/copycerts.sh + apt install -y mailutils xtrabackup + + echo + echo + read -p "Enter the admin password for MySQL: " pwd + echo "Enter the root password for adding back in the admin user for MySQL:" + mysql -u root -p -e "CREATE USER 'admin'@'%' IDENTIFIED BY '${pwd}';GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;" + ;; + + read -n 1 -p "Login at https://mysql.scity.us and setup the admin user, verify it brings up the deploy prompt. Once complete then press ENTER" choice + /usr/bin/s9s cluster --register \ --cluster-type=galera \ --nodes="10.10.1.51;10.10.1.52" \