vaultwarden/overlay/usr/local/bin/healthcheck

10 lines
139 B
Plaintext
Raw Normal View History

2020-01-17 00:57:45 +01:00
#!/usr/bin/env sh
set -eo pipefail
2020-02-01 18:34:59 +01:00
2020-01-18 17:26:41 +01:00
URL=http://127.0.0.1:8080/alive
2020-01-17 00:57:45 +01:00
wget --quiet --tries=1 --spider ${URL}
[ $? -ne 0 ] && exit 1
exit 0