From 3920e96d7e5c8deea7a29a183d78c7cdfb251a9f Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 18 Jul 2018 17:26:43 +0200 Subject: Fix support host without REALM. --- dehydrated/cron.weekly/local-dehydrated | 2 +- dehydrated/hook.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'dehydrated') 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() { -- cgit v1.2.3