diff --git a/deploy-chatmail/src/deploy_chatmail/__init__.py b/deploy-chatmail/src/deploy_chatmail/__init__.py index 0dd152b..05507e2 100644 --- a/deploy-chatmail/src/deploy_chatmail/__init__.py +++ b/deploy-chatmail/src/deploy_chatmail/__init__.py @@ -295,7 +295,7 @@ def deploy_chatmail(mail_domain: str, mail_server: str, dkim_selector: str) -> N dovecot_need_restart = _configure_dovecot(mail_server, debug=debug) postfix_need_restart = _configure_postfix(mail_domain, debug=debug) opendkim_need_restart = _configure_opendkim(mail_domain, dkim_selector) - nginx_need_restart = _configure_nginx(mail_domain) + nginx_need_restart = _configure_nginx(mail_domain, mail_server) # deploy web pages and info if we have them pkg_root = importlib.resources.files(__package__) diff --git a/scripts/generate-dns-zone.sh b/scripts/generate-dns-zone.sh index 0480ca3..a5b9bd2 100755 --- a/scripts/generate-dns-zone.sh +++ b/scripts/generate-dns-zone.sh @@ -1,5 +1,6 @@ #!/bin/sh : ${CHATMAIL_DOMAIN:=c1.testrun.org} +: ${CHATMAIL_SERVER:=$CHATMAIL_DOMAIN} : ${CHATMAIL_SSH:=$CHATMAIL_DOMAIN} set -e @@ -8,16 +9,22 @@ EMAIL="root@$CHATMAIL_DOMAIN" ACME_ACCOUNT_URL="$($SSH -- acmetool account-url)" cat <