Update nodemgmt-scripts.sh
This commit is contained in:
@@ -1197,16 +1197,7 @@ SERVICE(){
|
||||
if [ "${3}" != "q" ]; then
|
||||
echo -en "${idsCL[LightYellow]}Verifying nginx config and ssl cert replication across the nodes... ${idsCL[Default]}"
|
||||
fi
|
||||
echo
|
||||
echo '1'
|
||||
echo `(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)`
|
||||
echo '2'
|
||||
echo ${nip}
|
||||
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then
|
||||
PH_CMD=""
|
||||
else
|
||||
PH_CMD="ssh root@${!NT_HOST}"
|
||||
fi
|
||||
PH_CMD="ssh root@${!NT_HOST}"
|
||||
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/nginx/test.repl"
|
||||
${PH_CMD} "echo -e \"Service ${1} ${2}\" > /etc/letsencrypt/test.repl"
|
||||
for nip in "${!NT_HOSTS}"; do
|
||||
@@ -1248,6 +1239,7 @@ SERVICE(){
|
||||
else
|
||||
NCMD="ssh root@${nip}"
|
||||
fi
|
||||
echo "1: $nip"
|
||||
if [ "${3}" != "q" ]; then
|
||||
echo -en "${NM_SRVCOPTS[${2}]}ing on ${NM_NODETYPES[$NTYPE]}-Node${nid} ($nip)... ${idsCL[Default]}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user