init-ubuntu: resolvconf is not needed anymore

unbound is still needed since it's running but not for resolv.conf
This commit is contained in:
Girish Ramakrishnan
2024-04-29 13:22:17 +02:00
parent caedf6a8e7
commit c49a440211
-6
View File
@@ -37,7 +37,6 @@ debconf-set-selections <<< 'mysql-server mysql-server/root_password password pas
debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password password'
# this enables automatic security upgrades (https://help.ubuntu.com/community/AutomaticSecurityUpdates)
# resolvconf is needed for unbound to work property after disabling systemd-resolved in 18.04
case "${ubuntu_version}" in
16.04)
gpg_package="gnupg"
@@ -98,7 +97,6 @@ apt-get -y install --no-install-recommends \
openssh-server \
python3-magic \
pwgen \
resolvconf \
sshfs \
swaks \
tzdata \
@@ -191,10 +189,6 @@ systemctl disable dnsmasq || true
systemctl stop postfix || true
systemctl disable postfix || true
# on ubuntu 18.04 and 20.04, this is the default. this requires resolvconf for DNS to work further after the disable
systemctl stop systemd-resolved || true
systemctl disable systemd-resolved || true
# on vultr, ufw is enabled by default. we have our own firewall
ufw disable || true