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.
2019-07-17 12:17:40 +02:00
|
|
|
#!/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 ;;
|
2019-07-20 16:19:23 +02:00
|
|
|
*alert-*alert-*SELF_URL_PATH*) exit 1 ;;
|
2019-07-20 15:56:15 +02:00
|
|
|
*alert-*SELF_URL_PATH*alert-*) exit 1 ;;
|
|
|
|
*SELF_URL_PATH*alert-*alert-*) exit 1 ;;
|
2019-07-17 12:17:40 +02:00
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|