From 38fc82cefe2a89278c2737e19012ca53c6899b82 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 6 May 2023 09:58:16 -0500 Subject: [PATCH] Update cc-cleaner.sh --- cc-cleaner.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/cc-cleaner.sh b/cc-cleaner.sh index 028e868..91e8884 100755 --- a/cc-cleaner.sh +++ b/cc-cleaner.sh @@ -51,12 +51,16 @@ case "$choice" in [Nn]) echo ''; exit 0;; * ) - ./install-cc + # ./install-cc + # + # #read -n 1 -p "Login at https://10.10.10.50 and setup the admin user, once complete then press ENTER" choice + # + # /opt/copycerts.sh + # apt install -y mailutils xtrabackup - #read -n 1 -p "Login at https://10.10.10.50 and setup the admin user, once complete then press ENTER" choice - - /opt/copycerts.sh - apt install -y mailutils xtrabackup + 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;" esac