[mod] report

This commit is contained in:
Andy Bunce 2022-06-06 11:54:36 +01:00
parent 26f14be426
commit a39cd5a599
1 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,14 @@
for $s in doc("config.xml")//sharedfolder
where starts-with($s/reldirpath,"datastore/")
return $s/reldirpath/string()
(: OMV config tools :)
declare variable $config:= doc("config.xml");
declare variable $folders:=$config/config/system/shares/sharedfolder;
declare variable $rsync:=$config/config/services/rsync/jobs/job;
declare function local:datastore(){
for $s in $folders
where starts-with($s/reldirpath,"datastore/")
let $name:= substring-after($s/reldirpath,"datastore/")
order by $name
return $name
};
$rsync/src