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:
parent
c09bda3f17
commit
e6d7ae84e3
2 changed files with 3 additions and 3 deletions
|
@ -240,7 +240,7 @@ if [ $public_library -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Kobo sync permission
|
#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
|
# RELOAD NGINX
|
||||||
|
|
|
@ -141,11 +141,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" --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
|
else
|
||||||
##TO BE DELETED - error in testing has led to bad permission settings
|
##TO BE DELETED - error in testing has led to bad permission settings
|
||||||
ynh_permission_delete --permission="Kobo sync"
|
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
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue