summaryrefslogtreecommitdiff
path: root/dehydrated
diff options
context:
space:
mode:
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