mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 22:04:01 -07:00
Update fix-fpm-poold.sh
This commit is contained in:
parent
039dca41c3
commit
402a4286d3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue