config: BIRDNET_USER=$USER added

This commit is contained in:
frederik
2024-02-27 09:37:28 +01:00
parent 5a7b9a093c
commit 88d273f8fe
6 changed files with 32 additions and 9 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
# so far.
set -x
source /etc/birdnet/birdnet.conf
USER=$(awk -F: '/1000/ {print $1}' /etc/passwd)
HOME=$(awk -F: '/1000/ {print $6}' /etc/passwd)
USER=${BIRDNET_USER}
HOME=/home/${BIRDNET_USER}
my_dir=${HOME}/BirdNET-Pi/scripts
echo "Stopping services"
sudo systemctl stop birdnet_recording.service