Update 01-structure.sh

This commit is contained in:
Alexandre
2024-10-12 10:46:14 +02:00
committed by GitHub
parent b51e17cf0d
commit 17b7f28643

View File

@@ -54,7 +54,7 @@ chown -R pi:pi /config /etc/birdnet "$BIRDSONGS_FOLDER" /tmp
chmod -R 755 /config /etc/birdnet "$BIRDSONGS_FOLDER" /tmp
# Create default birds.db
if [ $(stat -c%s "$HOME/BirdNET-Pi/birds.db") -lt 10240 ]; then
if [ "$(stat -c%s "$HOME/BirdNET-Pi/birds.db")" -lt 10240 ]; then
rm "$HOME/BirdNET-Pi/birds.db"
fi
if [ ! -f "$HOME/BirdNET-Pi/birds.db" ]; then