mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 01:18:19 +01:00
26 lines
606 B
Bash
Executable File
26 lines
606 B
Bash
Executable File
#!/command/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
#################
|
|
# INITALISATION #
|
|
#################
|
|
|
|
bashio::log.info "ALSA_CARD option is set to $(bashio::config "ALSA_CARD"). If the microphone doesn't work, please adapt it"
|
|
echo " "
|
|
|
|
########################
|
|
# CONFIGURE birdnet-go #
|
|
########################
|
|
|
|
bashio::log.info "Starting app..."
|
|
COMMAND="$(bashio::config "COMMAND")"
|
|
# shellcheck disable=SC2086
|
|
/usr/bin/birdnet-go $COMMAND & true
|
|
|
|
# Wait for app to become available to start nginx
|
|
bashio::net.wait_for 8080 localhost 900
|
|
bashio::log.info "Starting NGinx..."
|
|
exec nginx
|
|
|