mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
[autopatch] Autopatch to migrate to new permission system
This commit is contained in:
parent
631d033ce0
commit
64692d6a01
2 changed files with 11 additions and 1 deletions
|
@ -133,7 +133,7 @@ set_permissions
|
||||||
ynh_script_progression --message="Configuring permissions"
|
ynh_script_progression --message="Configuring permissions"
|
||||||
# accessible by everyone (authentification is done by firefox accounts)
|
# accessible by everyone (authentification is done by firefox accounts)
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD Services
|
# RELOAD Services
|
||||||
|
|
|
@ -88,6 +88,16 @@ ynh_clean_setup () {
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD UPGRADE STEPS
|
# STANDARD UPGRADE STEPS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue