Files
hassio-addons/birdnet-go/rootfs/etc/cont-init.d/99-run.sh
2025-09-15 10:30:20 +02:00

27 lines
528 B
Bash
Executable File

#!/command/with-contenv bashio
# shellcheck shell=bash
set -e
#################
# INITALISATION #
#################
echo " "
# Check if alsa_card is provided
CONFIG_LOCATION="/config/config.yaml"
########################
# CONFIGURE birdnet-go #
########################
bashio::log.info "Starting app..."
# shellcheck disable=SC2086
/usr/bin/entrypoint.sh birdnet-go realtime &
true
# Wait for app to become available to start nginx
bashio::net.wait_for 8080 localhost 900
bashio::log.info "Starting NGinx..."
exec nginx