Update cc-cleaner.sh
This commit is contained in:
@@ -51,12 +51,16 @@ case "$choice" in
|
|||||||
[Nn]) echo ''; exit 0;;
|
[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
|
read -p "Enter the admin password for MySQL: " pwd
|
||||||
|
echo "Enter the root password for adding back in the admin user for MySQL:"
|
||||||
/opt/copycerts.sh
|
mysql -u root -p -e "CREATE USER 'admin'@'%' IDENTIFIED BY '${pwd}';GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' WITH GRANT OPTION;"
|
||||||
apt install -y mailutils xtrabackup
|
|
||||||
|
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user