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