1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-12 17:07:23 +01:00

Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204

# Conflicts:
#	setup/management.sh
#	setup/nextcloud.sh
This commit is contained in:
downtownallday
2022-10-09 09:30:12 -04:00
5 changed files with 31 additions and 26 deletions

View File

@@ -329,6 +329,18 @@ upstream_install() {
if [ ! -e setup/start.sh ]; then
die "Cannot install: the working directory must contain the source"
fi
# Upstream expects a virgin system and we may have preinstalled
# nsd that was unable to start and is in the failed state
# (eg. could not bind to ::53 because named is also
# installed). Using `systemctl reset-failed` won't work becuase
# upstream's setup/dns.sh script doesn't start nsd - it only
# installs nsd using apt after creating nsd's configuration.
if systemctl is-failed --quiet nsd; then
echo "notice: removing nsd because systemd has it in the failed state"
exec_no_output apt-get remove -y nsd
#systemctl reset-failed nsd
fi
if ! setup/start.sh; then
echo "$F_WARN"