mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-12 18:39:55 +02:00
clean
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
# Dependencies
|
# Dependencies
|
||||||
until [[ -e /var/run/dbus/system_bus_socket ]] && [[ -e /run/php/php*-fpm.sock ]]; do
|
sockfile="$(find /run/php -name *.sock)"
|
||||||
|
until [[ -e /var/run/dbus/system_bus_socket ]] && [[ -e "$sockfile" ]]; do
|
||||||
sleep 1s
|
sleep 1s
|
||||||
done
|
done
|
||||||
|
|
||||||
# Correct fpm.sock
|
# Correct fpm.sock
|
||||||
sed -i "s|/run/php/php-fpm.sock|$(find /run/php -name *.sock)|g" /etc/caddy/Caddyfile
|
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"
|
echo "Starting service: caddy"
|
||||||
exec \
|
/usr/bin/caddy run --config /etc/caddy/Caddyfile
|
||||||
s6-setuidgid "$USER" /usr/bin/caddy run --config /etc/caddy/Caddyfile
|
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
echo "Starting service: avahi alias"
|
echo "Starting service: avahi alias"
|
||||||
|
until [[ -e /start ]]; do
|
||||||
|
sleep 1s
|
||||||
|
done
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-setuidgid "$USER" /usr/bin/avahi-publish -a -R %I "$(hostname -I |cut -d' ' -f1)"
|
s6-setuidgid "$USER" /usr/bin/avahi-publish -a -R %I "$(hostname)"
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
echo "Starting service: birdnet recording"
|
echo "Starting service: birdnet recording"
|
||||||
|
|
||||||
|
until [[ -e /start ]]; do
|
||||||
|
sleep 1s
|
||||||
|
done
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-setuidgid "$USER" /usr/local/bin/birdnet_recording.sh
|
s6-setuidgid "$USER" /usr/local/bin/birdnet_recording.sh
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
#!/usr/bin/with-contenv bashio
|
||||||
echo "Starting service: livestream"
|
echo "Starting service: livestream"
|
||||||
until [[ -e /var/run/dbus/system_bus_socket ]]; do
|
until [[ -e /start ]]; do
|
||||||
sleep 1s
|
sleep 1s
|
||||||
done
|
done
|
||||||
|
|
||||||
Reference in New Issue
Block a user