Skip to content

Commit

Permalink
Fix wrong permissions assigned to annotation collection during install
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Feb 6, 2024
1 parent f039846 commit 734360a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion post-install.xql
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ sm:chmod(xs:anyURI($target || "/data/annotate"), "rwxrwxr-x"),
sm:chown(xs:anyURI($target || "/data/annotate"), "tei-demo"),
sm:chown(xs:anyURI($target || "/data/registers"), "tei-demo"),
for $resource in xmldb:get-child-resources($target || "/data/registers")
return
return (
sm:chown(xs:anyURI($target || "/data/registers/" || $resource), "tei-demo"),
sm:chmod(xs:anyURI($target || "/data/registers/" || $resource), "rw-rw-r--")
),
sm:chmod(xs:anyURI($target || "/data/jats"), "rwxrwxr-x"),
sm:chown(xs:anyURI($target || "/data/jats"), "tei-demo"),
xmldb:create-collection($target || "/data", "temp"),
Expand Down

0 comments on commit 734360a

Please sign in to comment.