mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
clean
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
%%interface%%:%%port%% {
|
||||
reverse_proxy http://localhost:8080 {
|
||||
header_up Host {host}
|
||||
header_up X-Forwarded-For {remote}
|
||||
header_up Connection "upgrade"
|
||||
header_up Accept-Encoding ""
|
||||
@base_url {
|
||||
path /
|
||||
file {
|
||||
try_files {path} /%%ingress_entry%%
|
||||
}
|
||||
}
|
||||
handle @base_url {
|
||||
sub_filter_once off
|
||||
sub_filter_types *
|
||||
sub_filter href=\"/ href=\"%%ingress_entry%%/
|
||||
sub_filter src=\"/ src=\"%%ingress_entry%%/
|
||||
sub_filter hx-get=\"/ hx-get=\"%%ingress_entry%%/
|
||||
sub_filter action=\"/ action=\"%%ingress_entry%%/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Waiting for dbus
|
||||
until [[ -e /var/run/dbus/system_bus_socket ]]; do
|
||||
sleep 1s
|
||||
done
|
||||
echo "Starting service: php pfm"
|
||||
exec /usr/sbin/php-fpm* -F
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# Waiting for dbus
|
||||
until [[ -e /var/run/dbus/system_bus_socket ]]; do
|
||||
sleep 1s
|
||||
done
|
||||
|
||||
echo "Starting service: avahi daemon"
|
||||
exec \
|
||||
avahi-daemon --no-chroot
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# Dependencies
|
||||
sockfile="empty"
|
||||
until [[ -e /var/run/dbus/system_bus_socket ]] && [[ -e "$sockfile" ]]; do
|
||||
sleep 1s
|
||||
sockfile="$(find /run/php -name *.sock)"
|
||||
done
|
||||
|
||||
# Correct fpm.sock
|
||||
chown caddy:caddy /run/php/php*-fpm.sock
|
||||
sed -i "s|/run/php/php-fpm.sock|$sockfile|g" /etc/caddy/Caddyfile
|
||||
|
||||
echo "Starting service: caddy"
|
||||
/usr/bin/caddy run --config /etc/caddy/Caddyfile
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
echo "Starting service: avahi alias"
|
||||
until [[ -e /start ]]; do
|
||||
sleep 1s
|
||||
done
|
||||
|
||||
exec \
|
||||
s6-setuidgid "$USER" /usr/bin/avahi-publish -a -R %I "$(hostname)"
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/command/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
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
|
||||
|
||||
# Restarting all services
|
||||
bashio::log.info "Ensuring birdnet.conf is in /config ; please customize as needed"
|
||||
if [ ! -f /config/birdnet.conf ]; then
|
||||
cp /etc/birdnet/birdnet.conf /config
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting BirdNET-Pi services"
|
||||
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