Update nodemgmt-scripts.sh

This commit is contained in:
2019-04-03 19:52:43 -05:00
parent ac78e36087
commit 83d8308370

View File

@@ -372,7 +372,7 @@ NEWCERT(){
echo -en "${idsCL[LightYellow]}Stopping other Webservers... ${idsCL[Default]}"
for nip in "${WEB_HOSTS[@]}"; do
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then
`ssh root@${nip} service nginx stop`
# `ssh root@${nip} service nginx stop`
# SERVICE nginx stop ${nip}
fi
done
@@ -428,7 +428,7 @@ NEWCERT(){
echo -en "${idsCL[LightYellow]}Starting other Webservers... ${idsCL[Default]}"
for nip in "${WEB_HOSTS[@]}"; do
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then
`ssh root@${nip} service nginx start`
# `ssh root@${nip} service nginx start`
# SERVICE nginx start ${nip}
fi
done