diff --git a/root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo b/root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo index d7095ec..dd2fe82 100644 --- a/root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo +++ b/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",