Fix start script to support with and without php
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Fabian Stamm 2022-02-20 00:37:50 +01:00
parent ed7ec2a709
commit 03c15f6884
1 changed files with 3 additions and 1 deletions

View File

@ -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