preparing for an installation
moved systemd services to /usr/lib/systemd/system will symlink from templates for easy updates
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user