From a6b9a35ac6c4d4ff9a28ff3418be3f172280e523 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 20 Feb 2021 00:02:27 +0100 Subject: [PATCH] Fix --- pull_request.md | 4 +--- scripts/install | 2 +- scripts/upgrade | 7 +++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pull_request.md b/pull_request.md index 5abf968..6c28fc5 100644 --- a/pull_request.md +++ b/pull_request.md @@ -13,6 +13,4 @@ ## Package_check results --- -*If you have access to [App Continuous Integration for packagers](https://yunohost.org/#/packaging_apps_ci) you can provide a link to the package_check results like below, replacing '-NUM-' in this link by the PR number and USERNAME by your username on the ci-apps-dev. Or you provide a screenshot or a pastebin of the results* - -[![Build Status](https://ci-apps-dev.yunohost.org/jenkins/job/chtickynotes_ynh%20PR-NUM-%20(USERNAME)/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/chtickynotes_ynh%20PR-NUM-%20(USERNAME)/) +* An automatic package_check will be launch at https://ci-apps-dev.yunohost.org/, when you add a specific comment to your Pull Request: "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!"* diff --git a/scripts/install b/scripts/install index d65d16b..d4c3e04 100644 --- a/scripts/install +++ b/scripts/install @@ -95,7 +95,7 @@ chown -R $app: $final_path #================================================= # SETUP SSOWAT #================================================= -ynh_script_progression --message="Configuring SSOwat..." --weight=1 +ynh_script_progression --message="Configuring permissions..." --weight=1 # Make app public if necessary or protect it [ $is_public -eq 0 ] || ynh_permission_update --permission="main" --add="visitors" diff --git a/scripts/upgrade b/scripts/upgrade index 1559b71..6d0d794 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -47,6 +47,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 #=================================================