From 5cc09a65873be9b1908b82389d679bac18e76cf0 Mon Sep 17 00:00:00 2001 From: Matheson Steplock Date: Wed, 23 Mar 2022 01:38:01 +0000 Subject: [PATCH] Enable and start systemd-resolved --- homeassistant-supervised/DEBIAN/postinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant-supervised/DEBIAN/postinst b/homeassistant-supervised/DEBIAN/postinst index 641e487..ed61811 100755 --- a/homeassistant-supervised/DEBIAN/postinst +++ b/homeassistant-supervised/DEBIAN/postinst @@ -126,6 +126,12 @@ systemctl start hassio-apparmor.service info "Start Home Assistant Supervised" systemctl start hassio-supervisor.service +# Enable and start systemd-resolved +if [ "$(systemctl is-active systemd-resolved)" = 'inactive' ]; then + info "Enable systemd-resolved" + systemctl enable systemd-resolved.service> /dev/null 2>&1; + systemctl start systemd-resolved.service> /dev/null 2>&1; +fi # Install HA CLI info "Installing the 'ha' cli"