mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
Update PHP-FPM-80.sh
This commit is contained in:
parent
5e24bf7222
commit
a56a2c7dd5
1 changed files with 15 additions and 8 deletions
|
@ -50,32 +50,38 @@ pool_file_80="/etc/php/8.0/fpm/pool.d/$2.conf"
|
||||||
|
|
||||||
if [ -f "$pool_file_56" ]; then
|
if [ -f "$pool_file_56" ]; then
|
||||||
rm $pool_file_56
|
rm $pool_file_56
|
||||||
service php5.6-fpm restart
|
systemctl reset-failed php5.6-fpm
|
||||||
|
systemctl restart php5.6-fpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$pool_file_70" ]; then
|
if [ -f "$pool_file_70" ]; then
|
||||||
rm $pool_file_70
|
rm $pool_file_70
|
||||||
service php7.0-fpm restart
|
systemctl reset-failed php7.0-fpm
|
||||||
|
systemctl restart php7.0-fpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$pool_file_71" ]; then
|
if [ -f "$pool_file_71" ]; then
|
||||||
rm $pool_file_71
|
rm $pool_file_71
|
||||||
service php7.1-fpm restart
|
systemctl reset-failed php7.1-fpm
|
||||||
|
systemctl restart php7.1-fpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$pool_file_72" ]; then
|
if [ -f "$pool_file_72" ]; then
|
||||||
rm $pool_file_72
|
rm $pool_file_72
|
||||||
service php7.2-fpm restart
|
systemctl reset-failed php7.2-fpm
|
||||||
|
systemctl restart php7.2-fpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$pool_file_73" ]; then
|
if [ -f "$pool_file_73" ]; then
|
||||||
rm $pool_file_73
|
rm $pool_file_73
|
||||||
service php7.3-fpm restart
|
systemctl reset-failed php7.3-fpm
|
||||||
|
systemctl restart php7.3-fpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$pool_file_74" ]; then
|
if [ -f "$pool_file_74" ]; then
|
||||||
rm $pool_file_74
|
rm $pool_file_74
|
||||||
service php7.4-fpm restart
|
systemctl reset-failed php7.4-fpm
|
||||||
|
systemctl restart php7.4-fpm
|
||||||
fi
|
fi
|
||||||
|
|
||||||
write_file=0
|
write_file=0
|
||||||
|
@ -89,7 +95,8 @@ else
|
||||||
fi
|
fi
|
||||||
if [ $write_file -eq 1 ]; then
|
if [ $write_file -eq 1 ]; then
|
||||||
echo "$pool_conf" > $pool_file_80
|
echo "$pool_conf" > $pool_file_80
|
||||||
service php8.0-fpm restart
|
systemctl reset-failed php8.0-fpm
|
||||||
|
systemctl restart php8.0-fpm
|
||||||
fi
|
fi
|
||||||
if [ -f "/etc/php/8.0/fpm/pool.d/www.conf" ]; then
|
if [ -f "/etc/php/8.0/fpm/pool.d/www.conf" ]; then
|
||||||
rm /etc/php/8.0/fpm/pool.d/www.conf
|
rm /etc/php/8.0/fpm/pool.d/www.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue