🗃️ Committing everything that changed 🗃️
Some checks failed
release-tag / release-image (push) Has been cancelled

rootfs/usr/local/etc/docker/init.d/zz-nginx.sh
This commit is contained in:
casjay 2025-01-29 14:03:32 -05:00
parent 8b2515ae9d
commit 9e0b841ffe
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -192,8 +192,11 @@ __execute_prerun() {
# Define environment
local hostname=${HOSTNAME}
local php_ver="${PHP_VERSION:-84}"
local php_fpm_bin="$(type -P php-fpm || type -P php-fpm$$php_ver || false)"
# Define actions/commands
/usr/sbin/php-fpm$php_ver --nodaemonize --fpm-config "/etc/php$php_ver/php-fpm.conf" &
if [ -n "$php_fpm_bin" ]; then
$php_fpm_bin --nodaemonize --fpm-config "/etc/php$php_ver/php-fpm.conf" &
fi
# allow custom functions
if builtin type -t __execute_prerun_local | grep -q 'function'; then __execute_prerun_local; fi
}