Skip to content

Commit

Permalink
[5.x] Fix PHP config bugs (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinsenter authored Aug 21, 2024
1 parent 09ed59e commit 42ca685
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/php/common/rootfs/etc/hooks/bootstrap/10-create-conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
# Author: SHIN Company <[email protected]>
# License: https://code.shin.company/php/blob/main/LICENSE
################################################################################
if ! has-cmd php-fpm; then exit 0; fi

if has-cmd php-envvars; then
if has-cmd php && has-cmd php-envvars; then
debug-echo "Generate PHP config"
if is-true $ALLOW_RUNTIME_PHP_ENVVARS; then
php-envvars write_dynamic_config 2>&1
Expand All @@ -17,7 +16,7 @@ if has-cmd php-envvars; then
fi
fi

if is-true $ENABLE_TUNING_FPM; then
if has-cmd php-fpm && is-true $ENABLE_TUNING_FPM; then
debug-echo -w "Tune PHP-FPM performance"
config_file="${PHP_INI_DIR}-fpm.d/zz-generated-settings.conf"

Expand Down

0 comments on commit 42ca685

Please sign in to comment.