From 15e60527a59b2910103da6f078adb69ad3d43ec1 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 20 Oct 2013 22:16:27 +0200 Subject: [PATCH] Add Metastore prop and support xattr metastore --- .../etc/pydio/bootstrap_repositories.php/050repo | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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",