scripts: add health-check
as a sort of poor-mans manual CI
This commit is contained in:
parent
9873353d00
commit
ce663b1346
25
scripts/health-check
Executable file
25
scripts/health-check
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl -p dig
|
||||
set -eu
|
||||
|
||||
echo "this script will check that uninsane.org is baseline operational"
|
||||
echo "it doesn't check all services, just the most critical ones"
|
||||
echo ""
|
||||
|
||||
set -x
|
||||
|
||||
nslookup uninsane.org. > /dev/null || echo "uninsane.org. DNS not reachable"
|
||||
nslookup uninsane.org. 1.1.1.1 > /dev/null || echo "uninsane.org. DNS not reachable via external resolver"
|
||||
nslookup uninsane.org. ovpns.uninsane.org > /dev/null || echo "uninsane.org. bootstrap DNS not reachable"
|
||||
|
||||
curl --silent --fail-with-body https://uninsane.org > /dev/null || echo "https://uninsane.org not online"
|
||||
curl --silent --fail-with-body https://matrix.uninsane.org > /dev/null || echo "https://matrix.uninsane.org not online"
|
||||
curl --silent --fail-with-body https://fed.uninsane.org > /dev/null || echo "https://fed.uninsane.org not online"
|
||||
|
||||
nslookup -querytype=TXT _dmarc.uninsane.org. > /dev/null || echo "missing DMARC record for uninsane.org"
|
||||
|
||||
set +x
|
||||
echo ""
|
||||
echo "SUCCESS"
|
||||
echo "now manually test email services:"
|
||||
echo "- <https://www.appmaildev.com/en/dkim>"
|
Loading…
Reference in New Issue
Block a user