mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Update 01-structure.sh
This commit is contained in:
@@ -6,14 +6,14 @@ set -e
|
|||||||
DEFAULT_BIRDSONGS_FOLDER="/data/clips/"
|
DEFAULT_BIRDSONGS_FOLDER="/data/clips/"
|
||||||
CONFIG_LOCATION="/config/config.yaml"
|
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"
|
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
|
fi
|
||||||
|
|
||||||
# Use alternative location in case of need
|
# Use alternative location in case of need
|
||||||
mkdir -p /root/.config/birdnet-go/
|
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
|
# Migrate Database
|
||||||
|
|||||||
Reference in New Issue
Block a user