fix: notify when something's not ok

This commit is contained in:
f 2024-12-28 17:14:27 -03:00
parent e7b91c4466
commit 09358dc693
No known key found for this signature in database

View file

@ -1,11 +1,17 @@
#!/bin/sh #!/bin/sh
lock=/tmp/certbot.lck
updated=/tmp/certbot.updated
failed=/tmp/certbot.failed
domains=/tmp/domains
ok() { ok() {
echo "ok - $@" >&2 echo "ok - $@" >&2
} }
not_ok() { not_ok() {
echo "not ok - $@" >&2 echo "not ok - $@" >&2
touch "${failed}"
} }
domain_configured() { domain_configured() {
@ -21,11 +27,6 @@ if test -z "${NODES}" && test -z "${SINGLE_NODE}"; then
exit 1 exit 1
fi fi
lock=/tmp/certbot.lck
updated=/tmp/certbot.updated
failed=/tmp/certbot.failed
domains=/tmp/domains
ensure() { ensure() {
test -n "$1" && ok "$1 received, exiting gracefully..." test -n "$1" && ok "$1 received, exiting gracefully..."