diff options
author | Jonas Smedegaard <dr@jones.dk> | 2018-07-18 17:26:43 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2018-07-18 17:26:43 +0200 |
commit | 3920e96d7e5c8deea7a29a183d78c7cdfb251a9f (patch) | |
tree | 7ac38f030412a065ac55f89becd077268478e822 | |
parent | 235ba1b141af55d9632dca638ae9c5dd3deb7fb3 (diff) |
Fix support host without REALM.
-rwxr-xr-x | dehydrated/cron.weekly/local-dehydrated | 2 | ||||
-rwxr-xr-x | dehydrated/hook.sh | 2 |
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() { |