add error detection to healthcheck
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Robert Kaussow 2019-07-24 09:53:24 +02:00
parent 9b834a5ba6
commit 38b2357e65

View File

@ -6,4 +6,9 @@ URL=http://localhost
wget --quiet --tries=1 --spider ${URL}
[ $? -ne 0 ] && exit 1
CONTENT=$(wget --quiet -O - ${URL})
case "$CONTENT" in
*"Internal Error"*) exit 1 ;;
esac
exit 0