mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 09:41:50 +02:00
update
This commit is contained in:
@@ -6,6 +6,8 @@ set -e
|
||||
# NGINX SETTING #
|
||||
#################
|
||||
|
||||
exit 0
|
||||
|
||||
declare ingress_interface
|
||||
declare ingress_port
|
||||
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user