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

Sync w/o regex

This commit is contained in:
Krakinou 2022-11-12 16:50:35 +01:00
parent c09bda3f17
commit e6d7ae84e3
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -141,11 +141,11 @@ if ! ynh_permission_exists --permission="Kobo sync"
then
# API Authorization with dedicated URL
ynh_print_warn --message="This version has now a dedicated Kobo sync authorization, please review group and permission"
ynh_permission_create --permission="Kobo sync" --label="Kobo Sync" --url="re:$domain$path_url\/kobo\/.*$" --allowed="visitors" "all_users" --show_tile="false" --protected="true"
ynh_permission_create --permission="Kobo sync" --label="Kobo Sync" --url="$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"
ynh_permission_create --permission="Kobo sync" --label="Kobo Sync" --url="$domain$path_url/kobo" --allowed="visitors" "all_users" --show_tile="false" --protected="true"
fi
#=================================================