This repository has been archived on 2021-12-12. You can view files and clone it, but cannot push or open issues or pull requests.
ttrss/overlay/usr/local/bin/healthcheck.sh
Robert Kaussow 0f5296d027
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
small fixes in healthcheck and entrypoint script
2019-07-20 14:34:59 +02:00

16 lines
238 B
Bash
Executable File

#!/bin/sh
set -eo pipefail
URL=http://localhost
wget --quiet --tries=1 --spider ${URL}
[ $? -ne 0 ] && exit 1
CONTENT=$(wget --quiet -O - ${URL})
case "$CONTENT" in
*Exception*) exit 1 ;;
*misconfiguration*) exit 1 ;;
esac
exit 0