Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user