This commit is contained in:
2023-05-06 10:08:22 -05:00
parent 56776f5644
commit dd387ee558
2 changed files with 14 additions and 13 deletions

View File

@@ -8,11 +8,11 @@ echo ""
echo -e "${idsCL[LightGreen]}Cluster Control Removal Script${idsCL[Default]}"
echo ""
# cd ~
# rm -f ./install-cc
# wget https://severalnines.com/downloads/cmon/install-cc
# chmod +x ./install-cc
# sed -i 's/\/var\/lib\/mysql\/mysql.sock/\/var\/run\/mysqld\/mysqld.sock/g' ./install-cc
cd ~
rm -f ./install-cc
wget https://severalnines.com/downloads/cmon/install-cc
chmod +x ./install-cc
sed -i 's/\/var\/lib\/mysql\/mysql.sock/\/var\/run\/mysqld\/mysqld.sock/g' ./install-cc
read -n 1 -p "Are you sure you wish to remove Cluster Control and all data (Y/n)?" choice
@@ -51,13 +51,14 @@ case "$choice" in
[Nn]) echo ''; exit 0;;
* )
# ./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
./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
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:"

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env bash
# Wrapper script for install, for easier execution via URL.
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/colors.inc)"
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/default.inc)"
source /dev/stdin <<< "$(curl -sL http://go.scity.us/colorsinc)"
source /dev/stdin <<< "$(curl -sL http://go.scity.us/defaultinc)"
if [ "$EUID" -ne 0 ]; then APTFUNC="sudo ${ATYPE}"