Update cc-cleaner.sh

This commit is contained in:
2023-05-06 09:58:16 -05:00
parent d4364e1e77
commit 38fc82cefe

View File

@@ -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