Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
#258 allow filesystem for amps
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcassel committed Jul 7, 2014
1 parent a7bedc6 commit 2f0c45c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/lib/xquery/setup.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -3927,11 +3927,12 @@ declare function setup:create-amps($import-config)
xdmp:eval(
'import module namespace sec="http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy";
declare variable $amp external;
declare variable $db := if($amp/sec:db-name = "filesystem") then 0 else xdmp:database($amp/sec:db-name);
sec:create-amp(
$amp/sec:namespace,
$amp/sec:local-name,
$amp/sec:doc-uri,
xdmp:database($amp/sec:db-name),
$db,
$amp/sec:role-name
)',
(xs:QName("amp"), $amp),
Expand Down

0 comments on commit 2f0c45c

Please sign in to comment.