updated ubuntu installer to disable systemd-resolved to help novice users.

This commit is contained in:
Shreyas Zare
2020-07-11 13:49:44 +05:30
parent 8e37a337ed
commit 0a3c47fbbc

View File

@@ -58,7 +58,14 @@ then
echo "Configuring systemd service..."
cp $dnsDir/systemd.service /etc/systemd/system/dns.service
systemctl enable dns.service >> $installLog 2>&1
systemctl disable systemd-resolved >> $installLog 2>&1
systemctl stop systemd-resolved >> $installLog 2>&1
systemctl start dns.service >> $installLog 2>&1
rm /etc/resolv.conf
echo "nameserver 127.0.0.1" > /etc/resolv.conf
fi
else
if [ -f "/etc/supervisor/conf.d/dns.conf" ]