Update 01-structure.sh

This commit is contained in:
Alexandre
2025-05-15 15:19:12 +02:00
committed by GitHub
parent 945d593727
commit 478b4fe794

View File

@@ -6,14 +6,14 @@ set -e
DEFAULT_BIRDSONGS_FOLDER="/data/clips/"
CONFIG_LOCATION="/config/config.yaml"
if [ ! -f /config/config.yaml ]; then
if [ ! -f "$CONFIG_LOCATION" ]; then
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
curl -L -s -S https://raw.githubusercontent.com/tphakala/birdnet-go/refs/heads/main/internal/conf/config.yaml -o "$CONFIG_LOCATION"
fi
# Use alternative location in case of need
mkdir -p /root/.config/birdnet-go/
ln -sf "$CONFIG_LOCATION" /root/.config/birdnet-go/config.yaml
ln -sf "$CONFIG_LOCATION" /root/.config/birdnet-go/
#################
# Migrate Database