Skip to content

A live bird collage card for your Home Assistant dashboard.

updating for new mariadb version

Patrick McGuire9b2aa5020659
diff --git a/scripts/update_db_pwd.sh b/scripts/update_db_pwd.sh
index eba6dd0a..dae2656b 100755
--- a/scripts/update_db_pwd.sh
+++ b/scripts/update_db_pwd.sh
@@ -3,10 +3,7 @@
source /etc/birdnet/birdnet.conf
sudo mysql -e "
- UPDATE mysql.user
- SET Password=PASSWORD('${DB_PWD}')
- WHERE USER='birder'
- AND Host='localhost';
+ SET PASSWORD FOR 'birder'@'localhost' = PASSWORD('${DB_PWD}');
FLUSH PRIVILEGES";
git -C /home/pi/BirdNET-Pi checkout -f analyze.py
git -C /home/pi/BirdNET-Pi checkout -f scripts/viewdb.php