Update cc-cleaner.sh
This commit is contained in:
@@ -55,57 +55,57 @@ case "$choice" in
|
|||||||
[Nn]) echo ''; exit 0;;
|
[Nn]) echo ''; exit 0;;
|
||||||
* )
|
* )
|
||||||
|
|
||||||
# ./install-cc
|
./install-cc
|
||||||
|
|
||||||
|
/opt/copycerts.sh
|
||||||
|
apt install -y mailutils xtrabackup
|
||||||
|
|
||||||
|
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;"
|
||||||
|
;;
|
||||||
|
|
||||||
|
# read -n 1 -p "Login at https://mysql.scity.us and setup the admin user, once complete then press ENTER" choice
|
||||||
#
|
#
|
||||||
# /opt/copycerts.sh
|
# /usr/bin/s9s cluster --register \
|
||||||
# apt install -y xtrabackup
|
# --cluster-type=galera \
|
||||||
|
# --nodes="10.10.1.51;10.10.1.52" \
|
||||||
|
# --vendor=mariadb \
|
||||||
|
# --provider-version=10.4 \
|
||||||
|
# --db-admin="root" \
|
||||||
|
# --db-admin-passwd='Dc$@54115' \
|
||||||
|
# --os-user=root \
|
||||||
|
# --os-key-file=/root/.ssh/id_rsa \
|
||||||
|
# --cluster-name="iDS-MySQL-Galera" \
|
||||||
|
# --wait
|
||||||
|
#
|
||||||
|
# /usr/bin/s9s cluster --register \
|
||||||
|
# --cluster-type=galera \
|
||||||
|
# --nodes="100.90.74.120;100.123.225.4;100.124.117.16" \
|
||||||
|
# --vendor=mariadb \
|
||||||
|
# --provider-version=10.6 \
|
||||||
|
# --db-admin="root" \
|
||||||
|
# --db-admin-passwd='Dc$@54115' \
|
||||||
|
# --os-user=root \
|
||||||
|
# --os-key-file=/root/.ssh/id_rsa \
|
||||||
|
# --cluster-name="iDS-WAN-DNS-MySQL-Galera" \
|
||||||
|
# --wait
|
||||||
|
#
|
||||||
|
# /usr/bin/s9s cluster --register \
|
||||||
|
# --cluster-type=galera \
|
||||||
|
# --nodes="10.10.10.10;10.10.10.11" \
|
||||||
|
# --vendor=mariadb \
|
||||||
|
# --provider-version=10.6 \
|
||||||
|
# --db-admin="root" \
|
||||||
|
# --db-admin-passwd='Dc$@54115' \
|
||||||
|
# --os-user=root \
|
||||||
|
# --os-key-file=/root/.ssh/id_rsa \
|
||||||
|
# --cluster-name="iDS-LAN-DNS-MySQL-Galera" \
|
||||||
|
# --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;"
|
|
||||||
# ;;
|
|
||||||
|
|
||||||
read -n 1 -p "Login at https://mysql.scity.us and setup the admin user, once complete then press ENTER" choice
|
|
||||||
|
|
||||||
/usr/bin/s9s cluster --register \
|
|
||||||
--cluster-type=galera \
|
|
||||||
--nodes="10.10.1.51;10.10.1.52" \
|
|
||||||
--vendor=mariadb \
|
|
||||||
--provider-version=10.4 \
|
|
||||||
--db-admin="root" \
|
|
||||||
--db-admin-passwd='Dc$@54115' \
|
|
||||||
--os-user=root \
|
|
||||||
--os-key-file=/root/.ssh/id_rsa \
|
|
||||||
--cluster-name="iDS-MySQL-Galera" \
|
|
||||||
--wait
|
|
||||||
|
|
||||||
/usr/bin/s9s cluster --register \
|
|
||||||
--cluster-type=galera \
|
|
||||||
--nodes="100.90.74.120;100.123.225.4;100.124.117.16" \
|
|
||||||
--vendor=mariadb \
|
|
||||||
--provider-version=10.6 \
|
|
||||||
--db-admin="root" \
|
|
||||||
--db-admin-passwd='Dc$@54115' \
|
|
||||||
--os-user=root \
|
|
||||||
--os-key-file=/root/.ssh/id_rsa \
|
|
||||||
--cluster-name="iDS-WAN-DNS-MySQL-Galera" \
|
|
||||||
--wait
|
|
||||||
|
|
||||||
/usr/bin/s9s cluster --register \
|
|
||||||
--cluster-type=galera \
|
|
||||||
--nodes="10.10.10.10;10.10.10.11" \
|
|
||||||
--vendor=mariadb \
|
|
||||||
--provider-version=10.6 \
|
|
||||||
--db-admin="root" \
|
|
||||||
--db-admin-passwd='Dc$@54115' \
|
|
||||||
--os-user=root \
|
|
||||||
--os-key-file=/root/.ssh/id_rsa \
|
|
||||||
--cluster-name="iDS-LAN-DNS-MySQL-Galera" \
|
|
||||||
--wait
|
|
||||||
|
|
||||||
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/install-postfix.sh)
|
|
||||||
|
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user