This commit is contained in:
2019-02-07 11:01:41 -06:00
parent 36abef2b9d
commit cff213cb2d
2 changed files with 7 additions and 4 deletions

View File

@@ -119,6 +119,9 @@ STATUS() {
STATUS-CHECK(){
if [ "${STATUS_CHECK_EMAIL}" != "" ]; then
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${NODEHOSTS}"* ]]; then
fi
for nip in "${NODE_HOSTS[@]}"; do
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then
for rcheck in "${REPL_CHECK[@]}"; do