Update status.inc

This commit is contained in:
2025-06-14 19:30:51 -05:00
parent 18dee37957
commit 9e0af7d6a7

View File

@@ -771,14 +771,17 @@ STATUS_NODE(){
if [ ! -f ${NM_TMPFOLDER}/${nip}~${docker}.disable ] && ([ ${SDCHK} == true ] || [ ${SDCHK} == primary ]); then
[ "${STATUS_ACTION}" != "check" ] && echo -en "${idsCL[White]} ${NM_DOCKER_DESC[${docker}]}$spc${idsCL[Default]}: "
docker_go=0
if [ "$(${NCMD} docker inspect -f {{.State.Health.Status}} ${docker} 2>/dev/null)" == "healthy" ]; then
docker_go=1
elif [ "$(${NCMD} docker inspect -f {{.State.Running}} ${docker})" == "true" ]; then
docker_go=1
fi
# docker_go=0
# if [ "$(${NCMD} docker inspect -f {{.State.Health.Status}} ${docker} 2>/dev/null)" == "healthy" ]; then
# docker_go=1
# elif [ "$(${NCMD} docker inspect -f {{.State.Running}} ${docker})" == "true" ]; then
# docker_go=1
# fi
if [ ${docker_go} -eq 0 ]; then
docker_go=$(${NCMD} "if [ \"\$(docker inspect -f {{.State.Health.Status}} ${docker} 2>/dev/null)\" == \"healthy\" ] || [ \"\$(docker inspect -f {{.State.Running}} ${docker})\" == \"true\" ]; then echo true; else echo false; fi")
if [ "${docker_go}" == "false" ]; then
#if [ ! -f ${NM_TMPFOLDER}/${nip}~${docker}.disable ] && ([ "${nip}" = "10.2.1.5" ] || [[ "${nip}" != *"10.2."* ]] || ([[ "${nip}" = *"10.2."* ]] && [ ! -f ${PW_TMPFOLDER}/OFF-vMS-Host1.down ])); then
if [ ! -f ${NM_TMPFOLDER}/${nip}~${docker}.disable ]; then