update
This commit is contained in:
@@ -4,6 +4,8 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
||||
servicestocheck=${1^^}_SINGLESRVR_SERVICES[@]
|
||||
dockerstocheck=${1^^}_SINGLESRVR_DOCKERS[@]
|
||||
hosts=${1^^}_HOSTS[@]
|
||||
|
||||
[ "${2^^}" == "START" ] && rm -f ${NM_TMPFOLDER}/.singleserver
|
||||
|
||||
if [ "${!servicestocheck}" != "" ] || [ "${!dockerstocheck}" != "" ]; then
|
||||
if [[ $(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1) == *${NM_SINGLESRVR_IP[${1^^}]}* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user