mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-04 16:21:35 +01:00
update
This commit is contained in:
@@ -36,6 +36,8 @@ RUN \
|
||||
# Correct for 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 && \
|
||||
curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/journalctl3.py -o /bin/journalctl && \
|
||||
chmod a+x /bin/journalctl && \
|
||||
\
|
||||
# Change user to pi and create /home/pi
|
||||
echo "setting users" && \
|
||||
@@ -61,7 +63,6 @@ RUN \
|
||||
# Remove all instances of sudo from all other scripts
|
||||
echo 'for file in $(grep -srl "sudo" $HOME/BirdNET-Pi/scripts); do sed -i "s|sudo ||" "$file"; done' >> /newinstallermod.sh && \
|
||||
echo 'for file in $(grep -srl "my_dir" $HOME/BirdNET-Pi/scripts); do sed -i "s|\$my_dir|/config|" "$file"; done' >> /newinstallermod.sh && \
|
||||
echo 'for file in $(grep -srl "install_services.sh" $HOME/BirdNET-Pi/scripts); do sed -i "/install_services.sh/c ./install_services.sh" "$file"; done' >> /newinstallermod.sh && \
|
||||
# Disable pulseaudio
|
||||
echo 'for file in $(grep -srl "pulseaudio --start" $HOME/BirdNET-Pi/scripts); do sed -i "/pulseaudio --start/d" "$file"; done' >> /newinstallermod.sh && \
|
||||
# Set permission
|
||||
|
||||
@@ -77,7 +77,10 @@
|
||||
"80/tcp": 80
|
||||
},
|
||||
"ports_description": {
|
||||
"80/tcp": "web ui"
|
||||
"80/tcp": "web ui",
|
||||
"8888/tcp": "web terminal",
|
||||
"8080/tcp": "log",
|
||||
"8501/tcp": "streamlit"
|
||||
},
|
||||
"privileged": [
|
||||
"SYS_ADMIN",
|
||||
@@ -95,6 +98,6 @@
|
||||
},
|
||||
"slug": "birdnet-pi",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi",
|
||||
"version": "1.8",
|
||||
"version": "1.9",
|
||||
"video": true
|
||||
}
|
||||
|
||||
@@ -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