forked from ediarum/ediarum.WEB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost-install.xql
22 lines (18 loc) · 1.07 KB
/
post-install.xql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
xquery version "3.0";
declare namespace sm="http://exist-db.org/xquery/securitymanager";
(: The following external variables are set by the repo:deploy function :)
(: file path pointing to the exist installation directory :)
declare variable $home external;
(: path to the directory containing the unpacked .xar package :)
declare variable $dir external;
(: the target collection into which the app is deployed :)
declare variable $target external;
sm:chmod(xs:anyURI($target||"/views/api/object-list.xql"), "rwxr-sr-x"),
sm:chmod(xs:anyURI($target||"/views/api/object-xml.xql"), "rwxr-sr-x"),
sm:chmod(xs:anyURI($target||"/views/api/object-html.xql"), "rwxr-sr-x"),
sm:chmod(xs:anyURI($target||"/views/api/object-text.xql"), "rwxr-sr-x"),
sm:chmod(xs:anyURI($target||"/views/api/object-json.xql"), "rwxr-sr-x"),
sm:chmod(xs:anyURI($target||"/views/api/object-part.xql"), "rwxr-sr-x"),
sm:chmod(xs:anyURI($target||"/views/api/all-list.xql"), "rwxr-sr-x"),
sm:chmod(xs:anyURI($target||"/views/api/search.xql"), "rwxr-sr-x"),
sm:chmod(xs:anyURI($target||"/views/api/show-config.xql"), "rwxr-sr-x")