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

Commit

Permalink
Fixed #277: allowed both database and modules for webdav servers
Browse files Browse the repository at this point in the history
  • Loading branch information
grtjn authored and dmcassel committed Aug 28, 2014
1 parent 68408d7 commit d8dccbf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deploy/lib/xquery/setup.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -2876,25 +2876,26 @@ declare function setup:create-appserver(
let $root := ($server-config/gr:root[fn:string-length(fn:string(.)) > 0], "/")[1]
let $port := xs:unsignedLong($server-config/gr:port)
let $database := setup:get-appserver-content-database($server-config)
let $modules := setup:get-appserver-modules-database($server-config)
let $admin-config := admin:get-configuration()
let $admin-config :=
if (xs:boolean($server-config/gr:webDAV)) then
(: Note: database id is stored as modules for webdav servers :)
(: Note: database id is stored as modules for webdav servers, allowing both in ml-config :)
admin:webdav-server-create(
$admin-config,
$default-group,
$server-name,
$root,
$port,
$database)
($database[. != '0'], $modules)[1])
else
admin:http-server-create(
$admin-config,
$default-group,
$server-name,
$root,
$port,
setup:get-appserver-modules-database($server-config),
$modules,
$database)
return
(
Expand Down

0 comments on commit d8dccbf

Please sign in to comment.