From ebc5f06d61579faf2fbaa3334057a2280e7ce833 Mon Sep 17 00:00:00 2001 From: KiekerJan Date: Sun, 30 Oct 2022 23:01:19 +0100 Subject: [PATCH] merge upstream 60.1 --- CHANGELOG.md | 6 ++++++ README.md | 2 +- management/dns_update.py | 11 ++++++++++- setup/bootstrap.sh | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 834dc8ee..2d72b8cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ CHANGELOG ========= +Version 60.1 (October 30, 2022) +------------------------------- + +* A setup issue where the DNS server nsd isn't running at the end of setup is (hopefully) fixed. +* Nextcloud is updated to 23.0.10 (contacts to 4.2.2, calendar to 3.5.1). + Version 60 (October 11, 2022) ----------------------------- diff --git a/README.md b/README.md index 520f1c77..9f258826 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ Clone this repository and checkout the tag corresponding to the most recent rele $ git clone https://github.com/mail-in-a-box/mailinabox $ cd mailinabox - $ git checkout v60 + $ git checkout v60.1 Begin the installation. diff --git a/management/dns_update.py b/management/dns_update.py index d57e8619..12dab498 100755 --- a/management/dns_update.py +++ b/management/dns_update.py @@ -104,7 +104,16 @@ def do_dns_update(env, force=False): # Tell nsd to reload changed zone files. if len(updated_domains) > 0: - shell('check_call', ["/usr/sbin/nsd-control", "reload"]) + # 'reconfig' is needed if there are added or removed zones, but + # it may not reload existing zones, so we call 'reload' too. If + # nsd isn't running, nsd-control fails, so in that case revert + # to restarting nsd to make sure it is running. Restarting nsd + # should also refresh everything. + try: + shell('check_call', ["/usr/sbin/nsd-control", "reconfig"]) + shell('check_call', ["/usr/sbin/nsd-control", "reload"]) + except: + shell('check_call', ["/usr/sbin/service", "nsd", "restart"]) # Write the DKIM configuration tables for all of the mail domains. from mailconfig import get_mail_domains diff --git a/setup/bootstrap.sh b/setup/bootstrap.sh index 3da667a2..dcfe388e 100644 --- a/setup/bootstrap.sh +++ b/setup/bootstrap.sh @@ -25,7 +25,7 @@ if [ -z "$TAG" ]; then if [ "$UBUNTU_VERSION" == "Ubuntu 22.04 LTS" ]; then # This machine is running Ubuntu 22.04, which is supported by # Mail-in-a-Box versions 60 and later. - TAG=v60 + TAG=v60.1 elif [ "$UBUNTU_VERSION" == "Ubuntu 18.04 LTS" ]; then # This machine is running Ubuntu 18.04, which is supported by # Mail-in-a-Box versions 0.40 through 5x.