From 13d30886043ece25555a5089672a9836c6979c9e Mon Sep 17 00:00:00 2001 From: Matheson Steplock Date: Wed, 23 Mar 2022 04:46:05 -0400 Subject: [PATCH] Start systemd-resolved (#202) * Enable and start systemd-resolved * reorder start --- homeassistant-supervised/DEBIAN/postinst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/homeassistant-supervised/DEBIAN/postinst b/homeassistant-supervised/DEBIAN/postinst index 12fcf6a..43a2751 100755 --- a/homeassistant-supervised/DEBIAN/postinst +++ b/homeassistant-supervised/DEBIAN/postinst @@ -24,6 +24,13 @@ URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt" info "Restarting NetworkManager" systemctl restart "${SERVICE_NM}" +# 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 + # Restart Docker service info "Restarting docker service" systemctl restart "$SERVICE_DOCKER" @@ -126,7 +133,6 @@ systemctl start hassio-apparmor.service info "Start Home Assistant Supervised" systemctl start hassio-supervisor.service - # Install HA CLI info "Installing the 'ha' cli" chmod a+x "${PREFIX}/bin/ha"