diff options
author | Jonas Smedegaard <dr@jones.dk> | 2018-10-20 11:36:53 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2018-10-20 11:37:53 +0200 |
commit | 9cd25d92fe4cba6010c16630c394ea911ad32bb9 (patch) | |
tree | 31028480f6058377b8549cf58be98aaa1e0001aa /dehydrated/cron.weekly/local-dehydrated | |
parent | f0e8aa8997900e33c7a8de9c8cfd34b996010c63 (diff) |
Tidy: Generalize resolving Redpill realm.
Diffstat (limited to 'dehydrated/cron.weekly/local-dehydrated')
-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) |