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