This commit is contained in:
Alexandre
2024-04-25 19:23:39 +02:00
parent 39124019d1
commit 85c31dc2c4
17 changed files with 26 additions and 5 deletions

View File

@@ -41,8 +41,9 @@ RUN \
\
# Ensure permissions
echo "setting permissions" && \
chown -R 1000:1000 /home/pi && \
echo "pi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
mkdir -p /home/pi/.config/matplotlib && \
chown -R 1000:1000 /home/pi && \
\
# Download installer
curl -f -L -s -S "https://raw.githubusercontent.com/Nachtzuster/BirdNET-Pi/main/newinstaller.sh" -o /newinstaller.sh && \

View File

@@ -76,7 +76,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",
@@ -94,5 +97,5 @@
},
"slug": "birdnet-pi",
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi",
"version": "1.0"
"version": "1.1"
}

View File

@@ -1,3 +1,4 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: dbus"
dbus-daemon --system
exec \
dbus-daemon --system --nofork

View File

@@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
exec /usr/sbin/php-fpm* -F

View File

@@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: pulseaudio"
exec s6-setuidgid abc \
/usr/bin/pulseaudio \
--log-level=0 \
--log-target=stderr \
--exit-idle-time=-1 > /dev/null 2>&1

View File

@@ -1,3 +1,8 @@
#!/usr/bin/with-contenv bashio
echo "Starting service: avahi daemon"
avahi-daemon
until [[ -e /var/run/dbus/system_bus_socket ]]; do
sleep 1s
done
exec \
avahi-daemon --no-chroot