config: BIRDNET_USER=$USER added
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user