From cb2ae971e5ff01b74c57adc0cab2453da0399ab3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 15 Mar 2021 10:00:10 +0100 Subject: [PATCH] Cleaning op --- manifest.json | 2 +- scripts/install | 1 - scripts/upgrade | 8 +++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 134f97d..4c0bccf 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Web-based XMPP/Jabber chat client", "fr": "Client de chat XMPP/Jabber basé sur le Web" }, - "version": "7.0.4~ynh3", + "version": "7.0.4~ynh4", "url": "http://conversejs.org/", "license": "MPL-2.0", "maintainer": { diff --git a/scripts/install b/scripts/install index 26b36c6..60364f3 100755 --- a/scripts/install +++ b/scripts/install @@ -45,7 +45,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=2 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=is_public --value=$is_public #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index e8c5fbd..f196c9e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,7 +17,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= @@ -37,6 +36,13 @@ if [ -z "$final_path" ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi +# Cleaning legacy permissions +if ynh_legacy_permissions_exists; then + ynh_legacy_permissions_delete_all + + ynh_app_setting_delete --app=$app --key=is_public +fi + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================