mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-20 14:29:14 +02:00
update
This commit is contained in:
@@ -36,6 +36,8 @@ RUN \
|
|||||||
# Correct for systemctl
|
# Correct for systemctl
|
||||||
curl -f -L -s -S https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py -o /bin/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 && \
|
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
|
# Change user to pi and create /home/pi
|
||||||
echo "setting users" && \
|
echo "setting users" && \
|
||||||
@@ -61,7 +63,6 @@ RUN \
|
|||||||
# Remove all instances of sudo from all other scripts
|
# 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 "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 "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
|
# Disable pulseaudio
|
||||||
echo 'for file in $(grep -srl "pulseaudio --start" $HOME/BirdNET-Pi/scripts); do sed -i "/pulseaudio --start/d" "$file"; done' >> /newinstallermod.sh && \
|
echo 'for file in $(grep -srl "pulseaudio --start" $HOME/BirdNET-Pi/scripts); do sed -i "/pulseaudio --start/d" "$file"; done' >> /newinstallermod.sh && \
|
||||||
# Set permission
|
# Set permission
|
||||||
|
|||||||
@@ -77,7 +77,10 @@
|
|||||||
"80/tcp": 80
|
"80/tcp": 80
|
||||||
},
|
},
|
||||||
"ports_description": {
|
"ports_description": {
|
||||||
"80/tcp": "web ui"
|
"80/tcp": "web ui",
|
||||||
|
"8888/tcp": "web terminal",
|
||||||
|
"8080/tcp": "log",
|
||||||
|
"8501/tcp": "streamlit"
|
||||||
},
|
},
|
||||||
"privileged": [
|
"privileged": [
|
||||||
"SYS_ADMIN",
|
"SYS_ADMIN",
|
||||||
@@ -95,6 +98,6 @@
|
|||||||
},
|
},
|
||||||
"slug": "birdnet-pi",
|
"slug": "birdnet-pi",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/birdnet-pi",
|
||||||
"version": "1.8",
|
"version": "1.9",
|
||||||
"video": true
|
"video": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ set -e
|
|||||||
# NGINX SETTING #
|
# NGINX SETTING #
|
||||||
#################
|
#################
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
declare ingress_interface
|
declare ingress_interface
|
||||||
declare ingress_port
|
declare ingress_port
|
||||||
|
|
||||||
|
|||||||
@@ -6,22 +6,15 @@ set -e
|
|||||||
# INITALISATION #
|
# 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
|
# Starting dbus
|
||||||
bashio::log.info "Starting system services..."
|
bashio::log.info "Starting system services..."
|
||||||
echo "... dbus"
|
echo "... dbus"
|
||||||
service dbus start
|
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
|
# Restarting all services
|
||||||
bashio::log.info "Ensuring birdnet.conf is in /config ; please customize as needed"
|
bashio::log.info "Ensuring birdnet.conf is in /config ; please customize as needed"
|
||||||
if [ ! -f /config/birdnet.conf ]; then
|
if [ ! -f /config/birdnet.conf ]; then
|
||||||
@@ -29,7 +22,7 @@ if [ ! -f /config/birdnet.conf ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.info "Starting BirdNET-Pi services"
|
bashio::log.info "Starting BirdNET-Pi services"
|
||||||
chmod +x $HOME/BirdNET-Pi/scripts/restart_services
|
chmod +x $HOME/BirdNET-Pi/scripts/restart_services.sh
|
||||||
/.$HOME/BirdNET-Pi/scripts/restart_services &>/proc/1/fd/1
|
/.$HOME/BirdNET-Pi/scripts/restart_services.sh &>/proc/1/fd/1
|
||||||
|
|
||||||
bashio::log.info "App is accessible from webui"
|
bashio::log.info "App is accessible from webui"
|
||||||
Reference in New Issue
Block a user