Update postinst

This commit is contained in:
myvesta 2020-05-09 19:19:55 +02:00 committed by GitHub
commit 3da021bcde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"