Adjusting systemd unit files to avoid hardcoded UID in the runtime dir path (#461)

* Update install_services.sh

Replaced hardcoded uid

* Update install_services.sh

avoid uid in /run path

* Update install_services.sh

had to use $(id)

* Update update_birdnet_snippets.sh

Remove XDG_RUNTIME_DIR from templates

* removed XDG_RUNTIME_DIR

* update HIDE_MOUNTS runtime paths

uid agnostic

* typos
This commit is contained in:
cjwaian
2025-09-23 09:17:22 -07:00
committed by GitHub
parent af5c8ddf9d
commit 29eb69025a
2 changed files with 22 additions and 6 deletions
-3
View File
@@ -119,7 +119,6 @@ install_recording_service() {
[Unit]
Description=BirdNET Recording
[Service]
Environment=XDG_RUNTIME_DIR=/run/user/1000
Restart=always
Type=simple
RestartSec=3
@@ -138,7 +137,6 @@ install_custom_recording_service() {
[Unit]
Description=BirdNET Custom Recording
[Service]
Environment=XDG_RUNTIME_DIR=/run/user/1000
Restart=always
Type=simple
RestartSec=3
@@ -365,7 +363,6 @@ Description=BirdNET-Pi Live Stream
After=network-online.target
Requires=network-online.target
[Service]
Environment=XDG_RUNTIME_DIR=/run/user/1000
Restart=always
Type=simple
RestartSec=3