From 9b0e6272745924a6349edbf4c5f89b534bec853d Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 27 Oct 2024 17:45:22 +0100 Subject: [PATCH] bundles/homeassistant: ensure virtualenv is in PATH --- bundles/homeassistant/files/homeassistant.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/homeassistant/files/homeassistant.service b/bundles/homeassistant/files/homeassistant.service index a650f17..ed0f2a9 100644 --- a/bundles/homeassistant/files/homeassistant.service +++ b/bundles/homeassistant/files/homeassistant.service @@ -5,6 +5,8 @@ After=network-online.target [Service] Type=simple User=homeassistant +Environment="VIRTUAL_ENV=/opt/homeassistant/venv" +Environment="PATH=/opt/homeassistant/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" WorkingDirectory=/var/opt/homeassistant ExecStart=/opt/homeassistant/venv/bin/hass -c "/var/opt/homeassistant" RestartForceExitStatus=100