summaryrefslogtreecommitdiff
path: root/dehydrated
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2018-10-20 11:36:53 +0200
committerJonas Smedegaard <dr@jones.dk>2018-10-20 11:37:53 +0200
commit9cd25d92fe4cba6010c16630c394ea911ad32bb9 (patch)
tree31028480f6058377b8549cf58be98aaa1e0001aa /dehydrated
parentf0e8aa8997900e33c7a8de9c8cfd34b996010c63 (diff)
Tidy: Generalize resolving Redpill realm.
Diffstat (limited to 'dehydrated')
-rwxr-xr-xdehydrated/cron.weekly/local-dehydrated4
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)