1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

Update Kobo sync permission

This commit is contained in:
Krakinou 2022-11-12 15:40:37 +01:00
parent d134275505
commit 6686f86a50
2 changed files with 6 additions and 2 deletions

View file

@ -240,7 +240,7 @@ if [ $public_library -eq 0 ]; then
fi fi
#Kobo sync permission #Kobo sync permission
ynh_permission_create --permission="Kobo sync" --url="$domain/kobo" --allowed="visitors" ynh_permission_create --permission="Kobo sync" --label="Kobo Sync" --url="re:$domain$path_url\/kobo\/.*$" --allowed="visitors" "all_users" --show_tile="false" --protected="true"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX

View file

@ -139,7 +139,11 @@ if ! ynh_permission_exists --permission="Kobo sync"
then then
# API Authorization with dedicated URL # API Authorization with dedicated URL
ynh_print_warn --message="This version has now a dedicated Kobo sync authorization, please review group and permission" ynh_print_warn --message="This version has now a dedicated Kobo sync authorization, please review group and permission"
ynh_permission_create --permission="Kobo sync" --url="$domain/kobo" --allowed="visitors" ynh_permission_create --permission="Kobo sync" --label="Kobo Sync" --url="re:$domain$path_url\/kobo\/.*$" --allowed="visitors" "all_users" --show_tile="false" --protected="true"
else
##TO BE DELETED - error in testing has led to bad permission settings
ynh_permission_delete --permission="Kobo sync"
ynh_permission_create --permission="Kobo sync" --label="Kobo Sync" --url="re:$domain$path_url\/kobo\/.*$" --allowed="visitors" "all_users" --show_tile="false" --protected="true"
fi fi
#================================================= #=================================================