Skip to content

Commit 48dfd05

Browse files
committed
Patch php-fpm pool config instead of providing full config file
1 parent 1c83545 commit 48dfd05

2 files changed

Lines changed: 5 additions & 29 deletions

File tree

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ CONTAINER="$(buildah from "$BASE_IMAGE")"
3636
echo + "MOUNT=\"\$(buildah mount $(quote "$CONTAINER"))\"" >&2
3737
MOUNT="$(buildah mount "$CONTAINER")"
3838

39+
PHP_FPM_OPEN_BASEDIR_CONF=( "/var/www/" "/etc/limesurvey/" "/usr/local/lib/php/" "/tmp/php/" "/dev/urandom" )
40+
cmd php_patch_config_list -a "$CONTAINER" "/etc/php-fpm/pool.d/www.conf" \
41+
"php(_admin)?_(flag|value)" \
42+
"php_admin_value[open_basedir]" "$(IFS=:; echo "${PHP_FPM_OPEN_BASEDIR_CONF[*]}")"
43+
3944
echo + "rsync -v -rl --exclude .gitignore ./src/ …/" >&2
4045
rsync -v -rl --exclude '.gitignore' "$BUILD_DIR/src/" "$MOUNT/"
4146

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

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

0 commit comments

Comments
 (0)