mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02: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 Variables
|
||||||
DEFAULT_BIRDSONGS_FOLDER="/data/clips/"
|
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
|
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"
|
bashio::log.warning "There is no config.yaml yet in the config folder, downloading a default one. Please customize"
|
||||||
cp /internal/conf/config.yaml /config/
|
curl -L -s -S https://raw.githubusercontent.com/tphakala/birdnet-go/refs/heads/main/internal/conf/config.yaml -o /config/config.yaml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
|||||||
Reference in New Issue
Block a user