Add support for php8.1
This commit is contained in:
parent
f2f115608a
commit
d63046b227
|
@ -418,6 +418,8 @@ create_www_account() {
|
||||||
pool_path="/etc/php/7.4/fpm/pool.d/"
|
pool_path="/etc/php/7.4/fpm/pool.d/"
|
||||||
elif [ "$php_version" = "80" ]; then
|
elif [ "$php_version" = "80" ]; then
|
||||||
pool_path="/etc/php/8.0/fpm/pool.d/"
|
pool_path="/etc/php/8.0/fpm/pool.d/"
|
||||||
|
elif [ "$php_version" = "81" ]; then
|
||||||
|
pool_path="/etc/php/8.1/fpm/pool.d/"
|
||||||
else
|
else
|
||||||
pool_path="/etc/php5/fpm/pool.d/"
|
pool_path="/etc/php5/fpm/pool.d/"
|
||||||
fi
|
fi
|
||||||
|
@ -591,6 +593,9 @@ EOT
|
||||||
elif [ "$php_version" = "80" ]; then
|
elif [ "$php_version" = "80" ]; then
|
||||||
initscript_path="/etc/init.d/php8.0-fpm"
|
initscript_path="/etc/init.d/php8.0-fpm"
|
||||||
binary="php-fpm8.0"
|
binary="php-fpm8.0"
|
||||||
|
elif [ "$php_version" = "81" ]; then
|
||||||
|
initscript_path="/etc/init.d/php8.1-fpm"
|
||||||
|
binary="php-fpm8.1"
|
||||||
else
|
else
|
||||||
initscript_path="/etc/init.d/php5-fpm"
|
initscript_path="/etc/init.d/php5-fpm"
|
||||||
binary="php5-fpm"
|
binary="php5-fpm"
|
||||||
|
@ -780,6 +785,9 @@ op_del() {
|
||||||
elif [ "$php_version" = "80" ]; then
|
elif [ "$php_version" = "80" ]; then
|
||||||
phpfpm_dir="/etc/php/8.0/fpm/pool.d/"
|
phpfpm_dir="/etc/php/8.0/fpm/pool.d/"
|
||||||
initscript_path="/etc/init.d/php8.0-fpm"
|
initscript_path="/etc/init.d/php8.0-fpm"
|
||||||
|
elif [ "$php_version" = "81" ]; then
|
||||||
|
phpfpm_dir="/etc/php/8.1/fpm/pool.d/"
|
||||||
|
initscript_path="/etc/init.d/php8.1-fpm"
|
||||||
else
|
else
|
||||||
phpfpm_dir="/etc/php5/fpm/pool.d/"
|
phpfpm_dir="/etc/php5/fpm/pool.d/"
|
||||||
initscript_path="/etc/init.d/php5-fpm"
|
initscript_path="/etc/init.d/php5-fpm"
|
||||||
|
|
Loading…
Reference in a new issue