summaryrefslogtreecommitdiff
path: root/dehydrated
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2018-01-06 13:07:24 +0100
committerJonas Smedegaard <dr@jones.dk>2018-01-06 13:07:24 +0100
commitf907eb63fcb452de58b383a93c25dd23e78f0647 (patch)
tree8f96a5d9e422b7aba05979991aea758229dc3686 /dehydrated
parentad459c58e048044a6d6983ed72d0c2581e1ce880 (diff)
Update (non-certdomain) maildomain before certdomains.
Diffstat (limited to 'dehydrated')
-rwxr-xr-xdehydrated/cron.weekly/local-dehydrated8
1 files changed, 4 insertions, 4 deletions
diff --git a/dehydrated/cron.weekly/local-dehydrated b/dehydrated/cron.weekly/local-dehydrated
index e07e5d9..2997440 100755
--- a/dehydrated/cron.weekly/local-dehydrated
+++ b/dehydrated/cron.weekly/local-dehydrated
@@ -4,10 +4,7 @@
set -eu
-# update certdomain certs
-dehydrated --cron
-
-# update non-EC maildomain cert if resolvable and not clashing with certdomain
+# update non-EC maildomain cert if resolvable and not a certdomain
maildomain=$(cat /etc/local-REDPILL/$(cat /etc/local-ORG/realm)/mailhost)
fqdn=$(hostname --fqdn)
[ -z "$fqdn" ] \
@@ -21,3 +18,6 @@ domain=$(hostname --domain)
[ -z "$maildomain" ] \
|| grep ^"$maildomain" /etc/dehydrated/domains.txt \
|| dehydrated --cron --domain "$maildomain $extradomains" --algo rsa
+
+# update certdomain certs
+dehydrated --cron