1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-03-30 23:37:05 +00:00
This commit is contained in:
seanlionelbarrett 2025-02-17 14:46:38 -08:00 committed by GitHub
commit 65e24c4ddc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -356,6 +356,10 @@ fi
# which is where bind9 will be running. Obviously don't do this before
# installing bind9 or else apt won't be able to resolve a server to
# download bind9 from.
# Deleting resolv.conf fails if the file has the immutable attribute
# or the append only attribute. So we ensure those attributes are not set
# before attempting to delete the file.
chattr -a -i /etc/resolv.conf
rm -f /etc/resolv.conf
tools/editconf.py /etc/systemd/resolved.conf DNSStubListener=no
echo "nameserver 127.0.0.1" > /etc/resolv.conf