aboutsummaryrefslogtreecommitdiff
path: root/src/palhm-dnssec-check.sh
diff options
context:
space:
mode:
authorDavid Timber <dxdt@dev.snart.me>2022-05-15 21:31:54 +0800
committerDavid Timber <dxdt@dev.snart.me>2022-05-15 21:31:54 +0800
commitf0e3d3ef8f9dad895f7b6bc1768630f0ef17912e (patch)
tree8fed439b2aab75f091c41e5778cbc72ac2c1f20a /src/palhm-dnssec-check.sh
parent7d2345ecae07e4b792c60f7d36fa78bb2dc69706 (diff)
Add boot-report subcmd ...
- Fix palhm-dnssec-check.sh - Make "tasks" config optional so that PALHM can be used only for boot-report
Diffstat (limited to 'src/palhm-dnssec-check.sh')
-rwxr-xr-xsrc/palhm-dnssec-check.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/palhm-dnssec-check.sh b/src/palhm-dnssec-check.sh
index f5ee466..4601d8e 100755
--- a/src/palhm-dnssec-check.sh
+++ b/src/palhm-dnssec-check.sh
@@ -1,7 +1,4 @@
#!/bin/bash
-set -e
-. "$( dirname -- "${BASH_SOURCE[0]}" )"/common.sh
-
do_query () {
# dig returns 0 upon successful reception and parse of the response message.
# All the other exit codes other than 0 will cause the script to terminate
@@ -11,9 +8,9 @@ do_query () {
# record will also return nothing with the status code zero.
dig +short +dnssec ANY "$TARGET" > "$tmpf"
if [ ! -s "$tmpf" ]; then
- palhm_die \
- "The nameserver returned no RR!
-DNSSEC verification probably failed."
+ echo "The nameserver returned no RR!
+DNSSEC verification probably failed." >&2
+ exit 1
fi
}