Skip to content

Commit 8a395ae

Browse files
committed
Patch php-fpm pool config instead of providing full config file
1 parent afbc737 commit 8a395ae

2 files changed

Lines changed: 8 additions & 33 deletions

File tree

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ source "$CI_TOOLS_PATH/helper/common.sh.inc"
2323
source "$CI_TOOLS_PATH/helper/container.sh.inc"
2424
source "$CI_TOOLS_PATH/helper/container-alpine.sh.inc"
2525
source "$CI_TOOLS_PATH/helper/patch.sh.inc"
26+
source "$CI_TOOLS_PATH/helper/php.sh.inc"
2627
source "$CI_TOOLS_PATH/helper/git.sh.inc"
2728

2829
BUILD_DIR="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
@@ -51,6 +52,13 @@ rm "$MOUNT/cron.sh"
5152
echo + "rm …/etc/php/conf.d/nextcloud.ini" >&2
5253
rm "$MOUNT/etc/php/conf.d/nextcloud.ini"
5354

55+
cmd php_patch_config_list -a "$CONTAINER" "/etc/php-fpm/pool.d/www.conf" \
56+
"php(_admin)?_(flag|value)" \
57+
"php_admin_value[memory_limit]" "512M" \
58+
"php_admin_value[max_execution_time]" "600" \
59+
"php_admin_value[upload_max_filesize]" "1024M" \
60+
"php_admin_value[post_max_size]" "1040M"
61+
5462
echo + "rsync -v -rl --exclude .gitignore ./src/ …/" >&2
5563
rsync -v -rl --exclude '.gitignore' "$BUILD_DIR/src/" "$MOUNT/"
5664

src/etc/php-fpm/pool.d/www.conf

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)