mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Update fix-fpm-poold.sh
This commit is contained in:
parent
402a4286d3
commit
af11a4cbf2
1 changed files with 6 additions and 6 deletions
|
@ -21,15 +21,15 @@ if [ -d "/etc/php" ]; then
|
||||||
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"
|
||||||
|
|
||||||
OLDVAL='request_terminate_timeout = 90s'
|
OLDVAL='request_terminate_timeout = '
|
||||||
NEWVAL='request_terminate_timeout = 360s'
|
NEWVAL='request_terminate_timeout = 360s'
|
||||||
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"
|
||||||
|
|
||||||
OLDVAL='php_admin_value\[max_execution_time\] = 30'
|
OLDVAL='php_admin_value\[max_execution_time\] = '
|
||||||
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
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue