Update cc-cleaner.sh
This commit is contained in:
@@ -55,12 +55,19 @@ case "$choice" in
|
|||||||
[Nn]) echo ''; exit 0;;
|
[Nn]) echo ''; exit 0;;
|
||||||
* )
|
* )
|
||||||
|
|
||||||
./install-cc
|
# ./install-cc
|
||||||
|
#
|
||||||
|
# /opt/copycerts.sh
|
||||||
|
# apt install -y xtrabackup
|
||||||
|
|
||||||
#read -n 1 -p "Login at https://10.10.10.50 and setup the admin user, once complete then press ENTER" choice
|
# 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;"
|
||||||
|
# ;;
|
||||||
|
|
||||||
/opt/copycerts.sh
|
read -n 1 -p "Login at https://mysql.scity.us and setup the admin user, once complete then press ENTER" choice
|
||||||
apt install -y mailutils xtrabackup
|
|
||||||
|
|
||||||
/usr/bin/s9s cluster --register \
|
/usr/bin/s9s cluster --register \
|
||||||
--cluster-type=galera \
|
--cluster-type=galera \
|
||||||
@@ -98,12 +105,8 @@ case "$choice" in
|
|||||||
--cluster-name="iDS-LAN-DNS-MySQL-Galera" \
|
--cluster-name="iDS-LAN-DNS-MySQL-Galera" \
|
||||||
--wait
|
--wait
|
||||||
|
|
||||||
echo
|
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/install-postfix.sh)
|
||||||
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;"
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user