Update fix-fpm-poold.sh

This commit is contained in:
myvesta 2022-11-03 15:37:43 +01:00 committed by GitHub
commit 402a4286d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ if [ -d "/etc/php" ]; then
OLDVAL='php_admin_value\[max_execution_time\] = 30' OLDVAL='php_admin_value\[max_execution_time\] = 30'
NEWVAL='php_admin_value\[max_execution_time\] = 300' NEWVAL='php_admin_value\[max_execution_time\] = 300'
find /etc/php/*/fpm/pool.d/ -name "*.conf" -type f -exec grep -l "$OLDVAL" {} \; | xargs sed -i "s|$OLDVAL|$NEWVAL|g" find /etc/php/*/fpm/pool.d/ -name "*.conf" -type f -exec grep -l "$OLDVAL" {} \; | xargs sed -i "s|$OLDVAL$|$NEWVAL|g"
find /usr/local/vesta/data/templates/web/apache2/ -type f -name "*.sh" -exec grep -l "$OLDVAL" {} \; | xargs sed -i "s|$OLDVAL|$NEWVAL|g" find /usr/local/vesta/data/templates/web/apache2/ -type f -name "*.sh" -exec grep -l "$OLDVAL" {} \; | xargs sed -i "s|$OLDVAL|$NEWVAL|g"
systemctl --full --type service --all | grep "php...-fpm" | awk '{print $1}' | xargs systemctl restart systemctl --full --type service --all | grep "php...-fpm" | awk '{print $1}' | xargs systemctl restart