1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

[autopatch] Autopatch to migrate to new permission system

This commit is contained in:
Yunohost-Bot 2021-03-15 00:25:46 +01:00 committed by Alexandre Aubin
parent 48f55c2173
commit b2b458d3e0
2 changed files with 12 additions and 2 deletions

View file

@ -172,8 +172,8 @@ yunohost service add $app.target \
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================
# unprotected_uris allows SSO credentials to be passed anyway.
ynh_app_setting_set $app unprotected_uris "/"
#================================================= #=================================================
# CREATE AN ADMIN # CREATE AN ADMIN

View file

@ -27,6 +27,16 @@ ynh_clean_setup() {
} }
ynh_abort_if_errors 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
#================================================= #=================================================
# Check upgrade type # Check upgrade type
#================================================= #=================================================