Skip to content

Commit

Permalink
refining status check
Browse files Browse the repository at this point in the history
  • Loading branch information
jullrich committed Oct 27, 2023
1 parent 1bbb94a commit 067feb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,16 @@ 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
else
echo "${RED}ERROR${NC}: webserver misconfigured. try reboot"
TESTS['webconfig']=0
fi
fi
else
TESTS['exposed']=0
TESTS['webconfig']=0
Expand Down

0 comments on commit 067feb2

Please sign in to comment.