From 7b260f59f06bdef7d12172f29e86c564e9be1669 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 15 May 2025 10:23:49 +0200 Subject: [PATCH] Download default config.yaml if not present https://github.com/alexbelgium/hassio-addons/issues/1781#issuecomment-2882951761 --- birdnet-go/rootfs/etc/cont-init.d/01-structure.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/birdnet-go/rootfs/etc/cont-init.d/01-structure.sh b/birdnet-go/rootfs/etc/cont-init.d/01-structure.sh index 67a08e82f..8b73ba923 100755 --- a/birdnet-go/rootfs/etc/cont-init.d/01-structure.sh +++ b/birdnet-go/rootfs/etc/cont-init.d/01-structure.sh @@ -4,11 +4,11 @@ set -e # Default Variables DEFAULT_BIRDSONGS_FOLDER="/data/clips/" -CONFIG_LOCATIONS=("/config/config.yaml" "/internal/conf/config.yaml") +CONFIG_LOCATIONS=("/config/config.yaml") if [ ! -f /config/config.yaml ]; then - bashio::log.warning "There is no config.yaml yet in the config folder, creating a default one. Please customize" - cp /internal/conf/config.yaml /config/ + bashio::log.warning "There is no config.yaml yet in the config folder, downloading a default one. Please customize" + curl -L -s -S https://raw.githubusercontent.com/tphakala/birdnet-go/refs/heads/main/internal/conf/config.yaml -o /config/config.yaml fi #################