Update nodemgmt-scripts.sh

This commit is contained in:
2019-04-03 19:43:46 -05:00
parent 21af626dda
commit 2057219dce

View File

@@ -371,8 +371,8 @@ NEWCERT(){
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`
SERVICE nginx stop ${nip}
`ssh root@${nip} service nginx stop`
# SERVICE nginx stop ${nip}
fi
done
@@ -422,8 +422,8 @@ NEWCERT(){
fi
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`
SERVICE nginx start ${nip}
`ssh root@${nip} service nginx start`
# SERVICE nginx start ${nip}
fi
done
echo ""