diff options
-rwxr-xr-x | dehydrated/cron.weekly/local-dehydrated | 4 |
1 files changed, 3 insertions, 1 deletions
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) |