mirror of
https://github.com/casjaysdevdocker/tor
synced 2025-01-31 00:34:22 -05:00
🗃️ Committing everything that changed 🗃️
Some checks failed
release-tag / release-image (push) Has been cancelled
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:
parent
8b2515ae9d
commit
9e0b841ffe
@ -192,8 +192,11 @@ __execute_prerun() {
|
|||||||
# Define environment
|
# Define environment
|
||||||
local hostname=${HOSTNAME}
|
local hostname=${HOSTNAME}
|
||||||
local php_ver="${PHP_VERSION:-84}"
|
local php_ver="${PHP_VERSION:-84}"
|
||||||
|
local php_fpm_bin="$(type -P php-fpm || type -P php-fpm$$php_ver || false)"
|
||||||
# Define actions/commands
|
# 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
|
# allow custom functions
|
||||||
if builtin type -t __execute_prerun_local | grep -q 'function'; then __execute_prerun_local; fi
|
if builtin type -t __execute_prerun_local | grep -q 'function'; then __execute_prerun_local; fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user