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"