From 372b00101d7c98056c290ad229ef866dbf679ec8 Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Thu, 15 Apr 2021 11:11:55 +0200 Subject: [PATCH] web-add.sh script now handles php 7.4 containers --- scripts/web-add.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/web-add.sh b/scripts/web-add.sh index 5f51ec2..6150828 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -414,6 +414,8 @@ create_www_account() { pool_path="/etc/php/7.0/fpm/pool.d/" elif [ "$php_version" = "73" ]; then pool_path="/etc/php/7.3/fpm/pool.d/" + elif [ "$php_version" = "74" ]; then + pool_path="/etc/php/7.4/fpm/pool.d/" else pool_path="/etc/php5/fpm/pool.d/" fi @@ -581,6 +583,9 @@ EOT elif [ "$php_version" = "73" ]; then initscript_path="/etc/init.d/php7.3-fpm" binary="php-fpm7.3" + elif [ "$php_version" = "74" ]; then + initscript_path="/etc/init.d/php7.4-fpm" + binary="php-fpm7.4" else initscript_path="/etc/init.d/php5-fpm" binary="php5-fpm" @@ -756,6 +761,9 @@ op_del() { elif [ "$php_version" = "73" ]; then phpfpm_dir="/etc/php/7.3/fpm/pool.d/" initscript_path="/etc/init.d/php7.3-fpm" + elif [ "$php_version" = "74" ]; then + phpfpm_dir="/etc/php/7.4/fpm/pool.d/" + initscript_path="/etc/init.d/php7.4-fpm" else phpfpm_dir="/etc/php5/fpm/pool.d/" initscript_path="/etc/init.d/php5-fpm"