From d4d0f6456521fb049dadd704ab35da918cac1662 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 18 May 2021 15:31:20 +0200 Subject: [PATCH] Fix --- scripts/_common.sh | 6 ++++-- scripts/change_url | 1 + scripts/upgrade | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 6e38880..030828b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,8 +4,10 @@ # COMMON VARIABLES #================================================= -YNH_PHP_VERSION=7.4 -YNH_COMPOSER_VERSION=2.0.13 +YNH_PHP_VERSION="7.4" + +YNH_COMPOSER_VERSION="2.0.13" + extra_php_dependencies="php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-exif php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-mysqli php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-zip" # needed for raw upload and video playback diff --git a/scripts/change_url b/scripts/change_url index 96fc140..d88a31b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -31,6 +31,7 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) +public_path=$(ynh_app_setting_get --app=$app --key=public_path) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP diff --git a/scripts/upgrade b/scripts/upgrade index c32b309..2505923 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -134,7 +134,7 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie #================================================= ynh_script_progression --message="Installing Composer..." --weight=1 -ynh_install_composer --install_args="--ignore-platform-reqs" +ynh_install_composer #--install_args="--ignore-platform-reqs" #================================================= # SETUP APPLICATION CONFIG