reorder start

This commit is contained in:
Matheson Steplock 2022-03-23 01:48:59 +00:00 committed by GitHub
parent 5cc09a6587
commit a6fa3fd721

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,13 +133,6 @@ 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"
chmod a+x "${PREFIX}/bin/ha"