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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user