This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Description
It will be quite handy that during setup:apply-database-settings at xquery/setup.xqy, instead of doing nothing whenever a value it's not set, it would default to some other value.
Like this, we would make sure that the database configuration and the configuration are perfectly aligned after a bootstrap.
Example:
let $value := setup:get-setting-from-database-config-as-string($database-config, "directory-creation")
let $admin-config :=
if ($value) then
admin:database-set-directory-creation($admin-config, $database, $value)
else
admin:database-set-directory-creation($admin-config, $database, "manual")
After a bootstrap it won't matter if somebody changed the setting manually or somebody removed the line from the config file. The setting will default to Manual and automatic directory creation will be disabled.
Thanks!
Again: I could send a pull request if you think it's interesting for everybody else.