From 2bb2261a20a36e5ce9c1318a552ad363d696a594 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 22 Oct 2013 18:39:00 +0200 Subject: [PATCH] Add support for meta.git history --- .../etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo | 3 +++ 1 file changed, 3 insertions(+) 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 dd2fe82..98bd712 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 @@ -55,6 +55,8 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){ my $desc = $share->prop('Name') || $name; my $recycledir = (($share->prop('RecycleBin') || 'disabled') eq 'disabled') ? '' : $share->prop('RecycleBinDir') || 'Recycle Bin'; + my $history = $share->prop('PydioHistory') || 'disabled'; + $history = ($history eq 'enabled') ? '"meta.git" => array(),':''; $OUT .=<<"EOF"; \$REPOSITORIES["$name"] = array( @@ -72,6 +74,7 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){ "PAGINATION_NUMBER" => 200, "META_SOURCES" => array( $metastore + $history "meta.user" => array ( "meta_fields" => "tags,stars_rate,css_label,anything_area", "meta_labels" => "Tags,Rate,Type,Note",