From 77737e524a975c5532e249e0fb220433950576bc Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 20 Oct 2020 15:44:09 +0200 Subject: [PATCH 1/3] [fix] multiple install should not be tested --- check_process | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_process b/check_process index 0cbeae3..7a9ead4 100644 --- a/check_process +++ b/check_process @@ -20,7 +20,7 @@ setup_public=1 upgrade=1 backup_restore=1 - multi_instance=1 + multi_instance=0 incorrect_path=1 port_already_use=0 change_url=0 From ebfbffadec3f46aecf9ddd20765970229cb587c0 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 20 Oct 2020 15:46:56 +0200 Subject: [PATCH 2/3] [fix] missing final_path definition --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index b333097..7a5e505 100644 --- a/scripts/install +++ b/scripts/install @@ -68,6 +68,7 @@ ynh_script_progression --message="Storing installation settings..." --time --wei ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url +ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=is_public --value=$is_public #================================================= @@ -86,7 +87,6 @@ ynh_script_progression --message="Configuring firewall..." --time --weight=1 port=$(ynh_find_port --port=8095) ynh_app_setting_set --app=$app --key=port --value=$port - #================================================= # INSTALL DEPENDENCIES #================================================= From c05a696e448fcb5b00c23cfc5e4ae73379d79265 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Tue, 20 Oct 2020 15:56:19 +0200 Subject: [PATCH 3/3] [fix] retrieve actual final_path --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 539f202..bbfde78 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Loading installation settings..." --time --weight=1 app=$YNH_APP_INSTANCE_NAME -final_path=/opt/yunohost/$app +final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= # CHECK VERSION