From e0d3764ffbcde3d354b7c27154f829cad8172e2e Mon Sep 17 00:00:00 2001 From: maniack Date: Thu, 12 Mar 2020 18:54:58 +0100 Subject: [PATCH 1/2] Fix migration to new permission system --- scripts/install | 2 +- scripts/upgrade | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 217b5c3..67f3925 100644 --- a/scripts/install +++ b/scripts/install @@ -192,7 +192,7 @@ yunohost service add $app --log $final_path/log/production.log #================================================= ynh_script_progression --message="Configuring SSOwat..." -ynh_app_setting_set --app=$app --key=skipped_uris --value="/" +ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" if [ $is_public -eq 0 ] then # If the app is private, viewing images stays publicly accessible. diff --git a/scripts/upgrade b/scripts/upgrade index e5b1313..54cee0e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,6 +100,10 @@ then ynh_exec_quiet yunohost firewall disallow TCP $port fi +# Replace skipped_uris by unprotected_uris for the migration to the new permission system. +ynh_app_setting_delete --app=$app --key=skipped_uris +ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= @@ -258,7 +262,7 @@ chown $app -R /var/log/$app #================================================= ynh_script_progression --message="Upgrading SSOwat configuration..." -ynh_app_setting_set --app=$app --key=skipped_uris --value="/" +ynh_app_setting_set --app=$app --key=unprotected_uris --value="/" if [ $is_public -eq 0 ] then # If the app is private, viewing images stays publicly accessible. From 99bf588ddb9a6a721aace03103e212a8b03f89a6 Mon Sep 17 00:00:00 2001 From: maniack Date: Thu, 12 Mar 2020 18:58:00 +0100 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 5 +++++ manifest.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3941231..47f2dce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ Changelog ## Unreleased - Nothing for now... +## [0.11.6~ynh3](https://github.com/YunoHost-Apps/lutim_ynh/pull/45) - 2020-03-12 + +#### Changed +- [ Fix migration to new permission system](https://github.com/YunoHost-Apps/lutim_ynh/pull/45/commits/e0d3764ffbcde3d354b7c27154f829cad8172e2e) + ## [0.11.6~ynh2](https://github.com/YunoHost-Apps/lutim_ynh/pull/43) - 2020-01-04 #### Fixed diff --git a/manifest.json b/manifest.json index 0e775df..9d761d2 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Self hosting images and sharing anonymous application", "fr": "Application d'hébergement et de partage d'images anonyme" }, - "version": "0.11.6~ynh2", + "version": "0.11.6~ynh3", "url": "https://lut.im", "license": "AGPL-3.0", "maintainer": {