From e9658f3e3afa319d801accfee94f8514bd885cfc Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 21 Sep 2022 08:39:26 -0400 Subject: [PATCH] Update podman-homeassistant-install.sh --- setup/podman-homeassistant-install.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/setup/podman-homeassistant-install.sh b/setup/podman-homeassistant-install.sh index 9a2ca71f..9a885507 100644 --- a/setup/podman-homeassistant-install.sh +++ b/setup/podman-homeassistant-install.sh @@ -125,6 +125,10 @@ podman run -d \ -v /etc/timezone:/etc/timezone:ro \ --net=host \ homeassistant/home-assistant:stable &>/dev/null +podman generate systemd \ + --new --name homeassistant \ + > /etc/systemd/system/homeassistant.service +systemctl enable homeassistant &>/dev/null msg_ok "Installed Home Assistant" PASS=$(grep -w "root" /etc/shadow | cut -b6); @@ -144,12 +148,7 @@ systemctl daemon-reload systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') msg_ok "Customized Container" fi - -podman generate systemd \ - --new --name homeassistant \ - > /etc/systemd/system/homeassistant.service -systemctl enable homeassistant &>/dev/null - + msg_info "Cleaning up" apt-get autoremove >/dev/null apt-get autoclean >/dev/null