From 3da021bcde0d3f932b7ec5a88d552ca43a65938b Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sat, 9 May 2020 19:19:55 +0200 Subject: [PATCH] Update postinst --- src/deb/vesta/postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index 072b845b..364574b5 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -20,6 +20,9 @@ fi if [ ! -f "/usr/local/vesta/data/upgrades/tune-fpm-config-files-v1" ]; then touch /usr/local/vesta/data/upgrades/tune-fpm-config-files-v1 + mkdir -p /root/etc-php-backup + cp -r /etc/php/ /root/etc-php-backup/ + OLDVAL='pm.max_children = 16' NEWVAL='pm.max_children = 8' find /etc/php/*/fpm/pool.d/ -name "*.conf" -type f -exec grep -l "$OLDVAL" {} \; | xargs sed -i "s|$OLDVAL|$NEWVAL|g"