diff --git a/scripts/install b/scripts/install index 6be1018..ddc83ec 100755 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index 422e897..d802a0e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================