mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
update
This commit is contained in:
9
birdnet-pi/rootfs/custom-services.d/00_php_pfm
Normal file
9
birdnet-pi/rootfs/custom-services.d/00_php_pfm
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
9
birdnet-pi/rootfs/custom-services.d/01_avahi
Normal file
9
birdnet-pi/rootfs/custom-services.d/01_avahi
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
14
birdnet-pi/rootfs/custom-services.d/02_caddy
Normal file
14
birdnet-pi/rootfs/custom-services.d/02_caddy
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
8
birdnet-pi/rootfs/custom-services.d/99_avahi-alias
Normal file
8
birdnet-pi/rootfs/custom-services.d/99_avahi-alias
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/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)"
|
||||
Reference in New Issue
Block a user