From 48ebea2bfae0d13f8efd7008d7f4c59f4154088a Mon Sep 17 00:00:00 2001 From: lapineige Date: Sat, 23 Jul 2022 09:27:32 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20phpversion=20=E2=86=92=20YNH=5FPHP=5FVERS?= =?UTF-8?q?ION?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index c1be929..27eff97 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -123,7 +123,7 @@ ynh_install_app_dependencies $pkg_dependencies ynh_script_progression --message="Upgrading PHP-FPM configuration..." # Create a dedicated PHP-FPM config -ynh_add_fpm_config --phpversion=$phpversion +ynh_add_fpm_config --phpversion=$YNH_PHP_VERSION # Set-up fail2ban # Create the log file is not already existing @@ -164,7 +164,7 @@ then #================================================= # Alias for php-cli execution command - php_exec="ynh_exec_as $app php$phpversion "$final_path/bin/console" --no-interaction --env=prod" + php_exec="ynh_exec_as $app php${YNH_PHP_VERSION} "$final_path/bin/console" --no-interaction --env=prod" # Set permissions to app files chown -R $app: $final_path