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.
kanboard/overlay/usr/local/bin/healthcheck
Robert Kaussow 38dea5e7f7
Some checks are pending
continuous-integration/drone/push Build is pending
refactoring and versioning fix
2020-02-22 14:44:39 +01:00

16 lines
227 B
Bash
Executable File

#!/usr/bin/env sh
set -eo pipefail
URL=http://localhost:8080
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