From d63046b22700ebf6b6383852175592e9a8ec3959 Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Tue, 22 Feb 2022 15:16:22 +0100 Subject: [PATCH] Add support for php8.1 --- scripts/web-add.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/web-add.sh b/scripts/web-add.sh index 2023000..9eb47ea 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -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"