From 8c616ea2a5fd2e3eb856d00fc9115fafcc113949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 27 Jan 2024 01:13:13 +0100 Subject: [PATCH] Fix : call update.sh with the proper php version (yes update.sh is a php script...) --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 9d5b858..c9be392 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -187,7 +187,7 @@ then # Update JavaScript dependencies pushd "$install_dir" - COMPOSER_ALLOW_SUPERUSER=1 ./bin/update.sh --version="?" -y <<< "" + COMPOSER_ALLOW_SUPERUSER=1 "php$phpversion" ./bin/update.sh --version="?" -y <<< "" # Store the config file checksum into the app settings ynh_store_file_checksum --file="$install_dir/config/config.inc.php" @@ -200,7 +200,7 @@ then #================================================= ynh_script_progression --message="Updating $app core..." --weight=4 - COMPOSER_ALLOW_SUPERUSER=1 ynh_exec_warn ./bin/update.sh --version=$oldversion -y + COMPOSER_ALLOW_SUPERUSER=1 ynh_exec_warn "php$phpversion" ./bin/update.sh --version=$oldversion -y popd fi