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