mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 17:08:19 +01:00
Download default config.yaml if not present
https://github.com/alexbelgium/hassio-addons/issues/1781#issuecomment-2882951761
This commit is contained in:
@@ -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
|
||||
|
||||
#################
|
||||
|
||||
Reference in New Issue
Block a user