mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
draft
This commit is contained in:
25
zzz_draft_birdnet-pi/rootfs/etc/cont-init.d/99-run.sh
Normal file
25
zzz_draft_birdnet-pi/rootfs/etc/cont-init.d/99-run.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/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-pi #
|
||||
########################
|
||||
|
||||
bashio::log.info "Starting app..."
|
||||
COMMAND="$(bashio::config "COMMAND")"
|
||||
# shellcheck disable=SC2086
|
||||
/usr/bin/birdnet-pi $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
|
||||
|
||||
Reference in New Issue
Block a user