From 03c15f6884b0d2e2f5561fe93d875285258ac3e3 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sun, 20 Feb 2022 00:37:50 +0100 Subject: [PATCH] Fix start script to support with and without php --- start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 5cf90b7..4cbd512 100644 --- a/start.sh +++ b/start.sh @@ -1,5 +1,7 @@ #!/bin/sh -/usr/sbin/php-fpm7 --allow-to-run-as-root -D --fpm-config /etc/php7/php-fpm.conf +if [ -f "/usr/sbin/php-fpm7" ]; then + /usr/sbin/php-fpm7 --allow-to-run-as-root -D --fpm-config /etc/php7/php-fpm.conf +fi caddy run --config /etc/Caddyfile --adapter caddyfile