Add support for php8.1

This commit is contained in:
Brice Waegeneire 2022-02-22 15:16:22 +01:00
parent f2f115608a
commit d63046b227
1 changed files with 8 additions and 0 deletions

View File

@ -418,6 +418,8 @@ create_www_account() {
pool_path="/etc/php/7.4/fpm/pool.d/"
elif [ "$php_version" = "80" ]; then
pool_path="/etc/php/8.0/fpm/pool.d/"
elif [ "$php_version" = "81" ]; then
pool_path="/etc/php/8.1/fpm/pool.d/"
else
pool_path="/etc/php5/fpm/pool.d/"
fi
@ -591,6 +593,9 @@ EOT
elif [ "$php_version" = "80" ]; then
initscript_path="/etc/init.d/php8.0-fpm"
binary="php-fpm8.0"
elif [ "$php_version" = "81" ]; then
initscript_path="/etc/init.d/php8.1-fpm"
binary="php-fpm8.1"
else
initscript_path="/etc/init.d/php5-fpm"
binary="php5-fpm"
@ -780,6 +785,9 @@ op_del() {
elif [ "$php_version" = "80" ]; then
phpfpm_dir="/etc/php/8.0/fpm/pool.d/"
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
phpfpm_dir="/etc/php5/fpm/pool.d/"
initscript_path="/etc/init.d/php5-fpm"