Start systemd-resolved (#202)

* Enable and start systemd-resolved

* reorder start
This commit is contained in:
Matheson Steplock 2022-03-23 04:46:05 -04:00 committed by GitHub
parent ceb01be00b
commit 13d3088604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"