Start systemd-resolved (#202)
* Enable and start systemd-resolved * reorder start
This commit is contained in:
parent
ceb01be00b
commit
13d3088604
1 changed files with 7 additions and 1 deletions
|
@ -24,6 +24,13 @@ URL_APPARMOR_PROFILE="https://version.home-assistant.io/apparmor.txt"
|
||||||
info "Restarting NetworkManager"
|
info "Restarting NetworkManager"
|
||||||
systemctl restart "${SERVICE_NM}"
|
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
|
# Restart Docker service
|
||||||
info "Restarting docker service"
|
info "Restarting docker service"
|
||||||
systemctl restart "$SERVICE_DOCKER"
|
systemctl restart "$SERVICE_DOCKER"
|
||||||
|
@ -126,7 +133,6 @@ systemctl start hassio-apparmor.service
|
||||||
info "Start Home Assistant Supervised"
|
info "Start Home Assistant Supervised"
|
||||||
systemctl start hassio-supervisor.service
|
systemctl start hassio-supervisor.service
|
||||||
|
|
||||||
|
|
||||||
# Install HA CLI
|
# Install HA CLI
|
||||||
info "Installing the 'ha' cli"
|
info "Installing the 'ha' cli"
|
||||||
chmod a+x "${PREFIX}/bin/ha"
|
chmod a+x "${PREFIX}/bin/ha"
|
||||||
|
|
Loading…
Reference in a new issue