mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Use user variable in systemd venv service (#9257)
Tiny doc update Since we are using systemd template, and that the user is already used as the variable, i think it is easier to manage like that.
This commit is contained in:
parent
80735a1b6a
commit
6bf7d8fa15
@ -51,7 +51,7 @@ After=network-online.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=%i
|
User=%i
|
||||||
ExecStart=/srv/homeassistant/bin/hass -c "/home/YOUR_USER/.homeassistant"
|
ExecStart=/srv/homeassistant/bin/hass -c "/home/%i/.homeassistant"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user