mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Update postinst
This commit is contained in:
parent
4b7bf3b9a2
commit
3da021bcde
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue