try systemd

This commit is contained in:
Alexandre
2024-04-26 10:57:34 +02:00
parent 9fbd9b3f67
commit 8cd23d0d11
16 changed files with 38 additions and 19 deletions

View 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