This commit is contained in:
Alexandre
2024-10-12 13:37:41 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -110,3 +110,4 @@ zzz_archived_paperless_ngx: zzz_archived_paperless_ngx/config.* # Image : yes
zzz_archived_plex_meta_manager: zzz_archived_plex_meta_manager/config.* # Image : yes
zzz_draft_birdnet-pi: zzz_draft_birdnet-pi/config.* # Image : yes
zzz_draft_overleaf: zzz_draft_overleaf/config.* # Image : yes
zzz_test: zzz_test/config.* # Image : yes

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 [ ! -f "$HOME/BirdNET-Pi/birds.db" ] || [ "$(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