This commit is contained in:
Alexandre
2024-05-01 16:24:10 +02:00
committed by GitHub
parent 71d6c0e24c
commit 637479c8d9
7 changed files with 0 additions and 49 deletions

View 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