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 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 #================================================= 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