1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00

[autopatch] Autopatch to migrate to new permission system

This commit is contained in:
Yunohost-Bot 2021-03-15 00:27:40 +01:00 committed by Alexandre Aubin
parent 9d020366d0
commit 5c36ddd62b
2 changed files with 12 additions and 1 deletions

View file

@ -152,8 +152,9 @@ yunohost service add $app --description="News feed reader and aggregator" --log=
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1
ynh_permission_update --permission="main" --add="visitors"
ynh_app_setting_set --app=$app --key=skipped_uris --value="/public.php,/api,/opml.php?op=publish"
#=================================================
# RELOAD NGINX

View file

@ -60,6 +60,16 @@ ynh_clean_setup () {
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# Migrate legacy permissions to new system
#=================================================
if ynh_legacy_permissions_exists
then
ynh_legacy_permissions_delete_all
ynh_app_setting_delete --app=$app --key=is_public
fi
#=================================================
# ENSURE DOWNWARD COMPATIBILITY BIS
#=================================================