1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00
This commit is contained in:
ericgaspar 2022-01-15 11:58:38 +01:00
parent 6cdd45fdca
commit 72c1363e7c
2 changed files with 16 additions and 2 deletions

View file

@ -134,9 +134,9 @@ ynh_use_logrotate --logfile /var/log/$app/sogo.log --nonappend
#=================================================
ynh_script_progression --message="Configuring permissions..." --weight=1
if [ "$is_public" == '1' ];
if [ $is_public -eq 1 ]
then
ynh_permission_update --permission "main" --add "visitors"
ynh_permission_update --permission="main" --add="visitors"
fi
ynh_permission_create --permission="sync_client" --allowed='visitors' --auth_header=false\

View file

@ -83,6 +83,20 @@ then
ynh_app_setting_set --app=$app --key=db_user --value=$db_user
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
if ! ynh_permission_exists --permission="sync_client"; then
# Create the required permissions
ynh_permission_create --permission="sync_client" --allowed='visitors' --auth_header=false\
--label="Sync client" --protected=true --show_tile=false\
--additional_urls="/Microsoft-Server-ActiveSync" "/principals" "/.well-known/caldav" "/.well-known/carddav"
fi
#=================================================
# STANDARD MODIFICATIONS
#=================================================