preparing for an installation

moved systemd services to /usr/lib/systemd/system
will symlink from templates for easy updates
This commit is contained in:
mcguirepr89
2022-03-03 09:56:18 -05:00
parent 4108028931
commit 0df161b762
7 changed files with 19 additions and 101 deletions
+1 -10
View File
@@ -1,14 +1,5 @@
#!/usr/bin/env bash
# Update the species list
#set -x
trap 'rm -f "$TMPFILE"' EXIT
source /etc/birdnet/birdnet.conf
db=birds
dbuser=birder
dbpassword=${DB_PWD}
mysql -u${dbuser} -p${dbpassword} ${db} \
-e 'SELECT Com_Name
FROM detections
GROUP BY Com_Name' |\
tail -n+2 > ${IDFILE}
sqlite3 /home/pi/BirdNET-Pi/scripts/birds.db "SELECT DISTINCT(Com_Name) FROM detections" | sort > ${IDFILE}