summaryrefslogtreecommitdiff
path: root/dehydrated
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2018-07-18 17:26:43 +0200
committerJonas Smedegaard <dr@jones.dk>2018-07-18 17:26:43 +0200
commit3920e96d7e5c8deea7a29a183d78c7cdfb251a9f (patch)
tree7ac38f030412a065ac55f89becd077268478e822 /dehydrated
parent235ba1b141af55d9632dca638ae9c5dd3deb7fb3 (diff)
Fix support host without REALM.
Diffstat (limited to 'dehydrated')
-rwxr-xr-xdehydrated/cron.weekly/local-dehydrated2
-rwxr-xr-xdehydrated/hook.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/dehydrated/cron.weekly/local-dehydrated b/dehydrated/cron.weekly/local-dehydrated
index 2997440..26cbd4a 100755
--- a/dehydrated/cron.weekly/local-dehydrated
+++ b/dehydrated/cron.weekly/local-dehydrated
@@ -5,7 +5,7 @@
set -eu
# update non-EC maildomain cert if resolvable and not a certdomain
-maildomain=$(cat /etc/local-REDPILL/$(cat /etc/local-ORG/realm)/mailhost)
+maildomain=$(cat /etc/local-REDPILL/$(cat /etc/local-ORG/realm)/mailhost) || true
fqdn=$(hostname --fqdn)
[ -z "$fqdn" ] \
|| [ "$maildomain" = "$fqdn" ] \
diff --git a/dehydrated/hook.sh b/dehydrated/hook.sh
index 0b3f293..fd6be0a 100755
--- a/dehydrated/hook.sh
+++ b/dehydrated/hook.sh
@@ -4,7 +4,7 @@ set -e
ACTION=$1; shift
-REALM=$(cat /etc/local-ORG/realm)
+REALM=$(cat /etc/local-ORG/realm) || true
# resolve hostnames of service installed and registered with Redpill
servicehosts() {