summaryrefslogtreecommitdiff
path: root/dehydrated
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2018-01-06 13:15:54 +0100
committerJonas Smedegaard <dr@jones.dk>2018-01-06 13:15:54 +0100
commit5727bffa2e7ff0cd9a4e732d4c6b0ee5b7ea10e2 (patch)
treeea3dea7f769f5ffdbc043c8af4f10e9d9a7852b0 /dehydrated
parent9a6d3b4b1e6a534f44c71f04cac0e66cf69b7952 (diff)
Update (non-certdomain) maildomain even if canonical hostname (fqdn).
Diffstat (limited to 'dehydrated')
-rwxr-xr-xdehydrated/cron.weekly/local-dehydrated5
1 files changed, 0 insertions, 5 deletions
diff --git a/dehydrated/cron.weekly/local-dehydrated b/dehydrated/cron.weekly/local-dehydrated
index 2997440..8408c13 100755
--- a/dehydrated/cron.weekly/local-dehydrated
+++ b/dehydrated/cron.weekly/local-dehydrated
@@ -6,14 +6,9 @@ set -eu
# 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" ] \
- || [ "$maildomain" = "$fqdn" ] \
- || extradomains=${extradomains:+$extradomains }$fqdn
domain=$(hostname --domain)
[ -z "$domain" ] \
|| [ "$maildomain" = "$domain" ] \
- || [ "$fqdn" = "$domain" ] \
|| extradomains=${extradomains:+$extradomains }$domain
[ -z "$maildomain" ] \
|| grep ^"$maildomain" /etc/dehydrated/domains.txt \