Update nodemgmt-scripts.sh

This commit is contained in:
2019-10-01 23:46:48 -05:00
parent 7cbbd46f51
commit 59a978b8fd

View File

@@ -833,6 +833,7 @@ NEWSITE(){
fi
echo -e -n "${idsCL[LightRed]}Is this information correct? [Y/n]${idsCL[Default]} "
read response
echo
if [[ $response =~ ^[Yy]$ ]] || [ "${response}" = "" ]; then
if [[ ${NEW_SITE} == *","* ]]; then
IFS=','; NEW_SITES=(${NEW_SITE}); unset IFS
@@ -1375,7 +1376,7 @@ NODEUPDATE() {
echo -e "${idsCL[LightGreen]}-------------------------------------------${idsCL[Default]}"
nip=${MYSQLMANAGER}
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
nip='localhost '
nip='localhost '
fi
c=0; cw=15; spc=''
spc1=${cw}-7