Add Metastore prop and support xattr metastore

tags/0.2.0
Daniel Berteaud 11 years ago
parent 3419ecac23
commit 15e60527a5
  1. 16
      root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo

@ -10,6 +10,18 @@ use esmith::AccountsDB;
my $a = esmith::AccountsDB->open_ro();
my $homedir = $pydio{'HomeDir'} || 'none';
my $metastore = $pydio{'Metastore'} || 'serial';
if ($metastore eq 'xattr'){
$metastore = '"metastore.xattr" => array(),';
}
else {
$metastore =<<'EOF';
"metastore.serial" => array(
"METADATA_FILE_LOCATION" => "outside",
),
EOF
}
if (($homedir eq 'enabled') || ($homedir eq 'users')){
$OUT .=<<"EOF";
@ -59,9 +71,7 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){
"PAGINATION_THRESHOLD" => 500,
"PAGINATION_NUMBER" => 200,
"META_SOURCES" => array(
"metastore.serial" => array(
"METADATA_FILE_LOCATION" => "outside",
),
$metastore
"meta.user" => array (
"meta_fields" => "tags,stars_rate,css_label,anything_area",
"meta_labels" => "Tags,Rate,Type,Note",

Loading…
Cancel
Save