mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-23 07:46:05 +02:00
try systemd
This commit is contained in:
12
zzz_draft_birdnet-pi/rootfs/custom-services.d/02_caddy
Normal file
12
zzz_draft_birdnet-pi/rootfs/custom-services.d/02_caddy
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# Dependencies
|
||||
until [[ -e /var/run/dbus/system_bus_socket ]] && [[ -e /run/php/php*-fpm.sock ]]; do
|
||||
sleep 1s
|
||||
done
|
||||
|
||||
# Correct fpm.sock
|
||||
sed -i "s|/run/php/php-fpm.sock|$(find /run/php -name *.sock)|g" /etc/caddy/Caddyfile
|
||||
|
||||
echo "Starting service: caddy"
|
||||
exec \
|
||||
s6-setuidgid "$USER" /usr/bin/caddy run --config /etc/caddy/Caddyfile
|
||||
Reference in New Issue
Block a user