-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09ed59e
commit 42ca685
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" | ||
|
||
|