This commit is contained in:
Alexandre
2024-04-27 00:09:08 +02:00
parent 55a9a22c1f
commit aea2d4b602
4 changed files with 15 additions and 16 deletions

View File

@@ -6,6 +6,8 @@ set -e
# NGINX SETTING #
#################
exit 0
declare ingress_interface
declare ingress_port

View File

@@ -6,22 +6,15 @@ set -e
# INITALISATION #
#################
# Correcting systemctl
curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /bin/systemctl
chmod a+x /bin/systemctl
# Starting dbus
bashio::log.info "Starting system services..."
echo "... dbus"
service dbus start
# Starting php service
echo "... php"
until [[ -e /var/run/dbus/system_bus_socket ]]; do
sleep 1s
done
systemctl start php*service
# Starting avahi service
echo "... avahi"
systemctl start avahi*service
# Restarting all services
bashio::log.info "Ensuring birdnet.conf is in /config ; please customize as needed"
if [ ! -f /config/birdnet.conf ]; then
@@ -29,7 +22,7 @@ if [ ! -f /config/birdnet.conf ]; then
fi
bashio::log.info "Starting BirdNET-Pi services"
chmod +x $HOME/BirdNET-Pi/scripts/restart_services
/.$HOME/BirdNET-Pi/scripts/restart_services &>/proc/1/fd/1
chmod +x $HOME/BirdNET-Pi/scripts/restart_services.sh
/.$HOME/BirdNET-Pi/scripts/restart_services.sh &>/proc/1/fd/1
bashio::log.info "App is accessible from webui"