From f907eb63fcb452de58b383a93c25dd23e78f0647 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 6 Jan 2018 13:07:24 +0100 Subject: Update (non-certdomain) maildomain before certdomains. --- dehydrated/cron.weekly/local-dehydrated | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dehydrated') 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 -- cgit v1.2.3