From 64bdedb706d51f0bf40a31d805b18fdc411a3092 Mon Sep 17 00:00:00 2001 From: Galettofraise Date: Wed, 23 Feb 2022 18:46:59 +0100 Subject: [PATCH 1/4] [fix] Add --purge --- scripts/remove | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/remove b/scripts/remove index 1b12a17..61f2713 100644 --- a/scripts/remove +++ b/scripts/remove @@ -73,6 +73,12 @@ ynh_script_progression --message="Removing app data directory..." --weight=1 # Remove the app directory securely ynh_secure_remove --file="/home/yunohost.app/$app" +# Remove the data directory if --purge option is used +if [ "${YNH_APP_PURGE:-0}" -eq 1 ] +then + ynh_script_progression --message="Removing app data directory..." --time --weight=1 + ynh_secure_remove --file="$datadir" +fi #================================================= # REMOVE THE CRON FILE #================================================= From 67ad71ce78beb84a4eb83fd44412dd3ea0aa9814 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Sun, 27 Feb 2022 16:29:03 +0000 Subject: [PATCH 2/4] fix source link --- conf/app.src | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/app.src b/conf/app.src index 8da0a3b..9447497 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://framagit.org/framasoft/framaforms/-/archive/1.0.3/framaforms-1.0.3.tar.gz -SOURCE_SUM=a7b004dac19d761212d49a0e407f5d31c97e49ccefca6443067a9d5da68bf64d +SOURCE_URL=https://framagit.org/yakforms/yakforms/-/archive/1.0.3/yakforms-1.0.3.tar.gz +SOURCE_SUM=f8a8ac8789c36f07f2d1a03d13f9f6d947e499967b79ea626f7f87271a357703 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true From b0307f94354eb0c05bfa00a213fb2f789371155f Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 27 Feb 2022 21:40:42 +0100 Subject: [PATCH 3/4] [fix] IN this case we want remove datadir in every situation --- scripts/remove | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/remove b/scripts/remove index 61f2713..bf67d5d 100644 --- a/scripts/remove +++ b/scripts/remove @@ -71,14 +71,8 @@ ynh_remove_fpm_config ynh_script_progression --message="Removing app data directory..." --weight=1 # Remove the app directory securely -ynh_secure_remove --file="/home/yunohost.app/$app" +ynh_secure_remove --file="$datadir" -# Remove the data directory if --purge option is used -if [ "${YNH_APP_PURGE:-0}" -eq 1 ] -then - ynh_script_progression --message="Removing app data directory..." --time --weight=1 - ynh_secure_remove --file="$datadir" -fi #================================================= # REMOVE THE CRON FILE #================================================= From 5e9d882afec58520a4ee1101ed3579a2d9f6dbf8 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 27 Feb 2022 21:41:17 +0100 Subject: [PATCH 4/4] [fix] Missing var --- scripts/remove | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/remove b/scripts/remove index bf67d5d..8ff3cd4 100644 --- a/scripts/remove +++ b/scripts/remove @@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name final_path=$(ynh_app_setting_get --app=$app --key=final_path) +datadir=$(ynh_app_setting_get --app=$app --key=datadir) #================================================= # STANDARD REMOVE