-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removing restxq trigger on installation
due to eXist-db/exist#1010
- Loading branch information
1 parent
5db1660
commit cc57a67
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
xquery version "1.0"; | ||
|
||
import module namespace xdb="http://exist-db.org/xquery/xmldb"; | ||
import module 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; | ||
|
||
(:~ | ||
: Need to remove the RestXQ trigger due to a bug with circular module imports, | ||
: see https://github.com/eXist-db/exist/issues/1010 and http://markmail.org/message/jmftuswia4icviht | ||
~:) | ||
if(doc-available('/db/system/config/db/collection.xconf')) then | ||
xdb:remove('/db/system/config/db', 'collection.xconf') | ||
else () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters