From 9cd25d92fe4cba6010c16630c394ea911ad32bb9 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 20 Oct 2018 11:36:53 +0200 Subject: Tidy: Generalize resolving Redpill realm. --- dehydrated/cron.weekly/local-dehydrated | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dehydrated') diff --git a/dehydrated/cron.weekly/local-dehydrated b/dehydrated/cron.weekly/local-dehydrated index 43ab94d..861169f 100755 --- a/dehydrated/cron.weekly/local-dehydrated +++ b/dehydrated/cron.weekly/local-dehydrated @@ -4,8 +4,10 @@ set -eu +REALM=$(cat /etc/local-ORG/realm) || true + # update non-EC mailhost cert if resolvable and not a certdomain -mailhost=$(cat /etc/local-REDPILL/$(cat /etc/local-ORG/realm)/mailhost) || true +mailhost=$(cat "/etc/local-REDPILL/$REALM/mailhost") || true mailname=$(cat /etc/mailname) || true fqdn=$(hostname --fqdn) -- cgit v1.2.3