From 188ab807251a1b53e29eef76b102763c46d106dc Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 27 May 2022 07:27:01 +0200 Subject: [PATCH 1/2] Fix --- scripts/restore | 1 + scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index e591438..f9e32e4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -29,6 +29,7 @@ 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) +port=$(ynh_app_setting_get --app=$app --key=port) #================================================= # CHECK IF THE APP CAN BE RESTORED diff --git a/scripts/upgrade b/scripts/upgrade index af226cb..0f6a9e3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,11 +20,11 @@ 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) port=$(ynh_app_setting_get --app=$app --key=port) +datadir=$(ynh_app_setting_get --app=$app --key=datadir) #================================================= # CHECK VERSION #================================================= -ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed) From 71e82b56b4c43c07f36709d8f1067ab26f748779 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 27 May 2022 07:27:23 +0200 Subject: [PATCH 2/2] Update restore --- scripts/restore | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/restore b/scripts/restore index f9e32e4..73b6a86 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,6 +66,7 @@ ynh_restore_file --origin_path="$final_path" chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +chmod +x "$final_path/gossa" #================================================= # SPECIFIC RESTORATION