Skip to content

Commit

Permalink
removing restxq trigger on installation
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Nov 29, 2017
1 parent 5db1660 commit cc57a67
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions pre-install.xql
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 ()
2 changes: 1 addition & 1 deletion repo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<copyright>true</copyright>
<type>application</type>
<target>WeGA-WebApp</target>
<!--<prepare>pre-install.xql</prepare>-->
<prepare>pre-install.xql</prepare>
<finish>post-install.xql</finish>
<!-- <permissions user="guest" password="guest" group="guest" mode="rw-rw-r-\-"/>-->
</meta>

0 comments on commit cc57a67

Please sign in to comment.