From 8ff8550ec865e6dc7508a605290d0d08e1f27902 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 26 Jan 2021 19:49:48 +0100 Subject: [PATCH] Fix --- scripts/Find Results | 3 +++ scripts/install | 2 ++ scripts/restore | 1 + scripts/upgrade | 1 + 4 files changed, 7 insertions(+) create mode 100644 scripts/Find Results diff --git a/scripts/Find Results b/scripts/Find Results new file mode 100644 index 0000000..1a87ddb --- /dev/null +++ b/scripts/Find Results @@ -0,0 +1,3 @@ +Searching 17 files for "path_url" (regex, case sensitive) + +0 matches \ No newline at end of file diff --git a/scripts/install b/scripts/install index 00b1e84..73970c5 100644 --- a/scripts/install +++ b/scripts/install @@ -21,6 +21,7 @@ ynh_abort_if_errors # Retrieve arguments domain=$YNH_APP_ARG_DOMAIN +path_url="/" architecture=$(ynh_detect_arch) app=$YNH_APP_INSTANCE_NAME @@ -38,6 +39,7 @@ test ! -e "$final_path" || ynh_die --message="This path already contains a folde ynh_script_progression --message="Storing installation settings..." --weight=1 ynh_app_setting_set --app=$app --key=domain --value=$domain +ynh_app_setting_set --app=$app --key=path --value=$path_url #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE diff --git a/scripts/restore b/scripts/restore index ab3ce2d..c757814 100644 --- a/scripts/restore +++ b/scripts/restore @@ -23,6 +23,7 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) +path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 8d18854..4a2b87b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,6 +17,7 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) +path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) architecture=$(ynh_detect_arch)