From 067feb24f2356351726729182b5ff56df55fa17f Mon Sep 17 00:00:00 2001 From: "Johannes B. Ullrich" Date: Fri, 27 Oct 2023 15:09:27 -0400 Subject: [PATCH] refining status check --- bin/status.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/status.sh b/bin/status.sh index 487d0ac..1667bab 100755 --- a/bin/status.sh +++ b/bin/status.sh @@ -266,6 +266,8 @@ if [ ${TESTS['iscagentrunning']} -eq 1 ]; then echo "${RED}ERROR${NC}: webserver not exposed. check network firewall" TESTS['exposed']=0 fi + TESTS['webconfig']=0 + if [[ "$port" == "open" ]]; then if [[ "$webconfig" == "ok" ]] ; then echo "${GREEN}OK${NC}: webserver configuration" TESTS['webconfig']=1 @@ -273,6 +275,7 @@ if [ ${TESTS['iscagentrunning']} -eq 1 ]; then echo "${RED}ERROR${NC}: webserver misconfigured. try reboot" TESTS['webconfig']=0 fi + fi else TESTS['exposed']=0 TESTS['webconfig']=0