|
|
|
@ -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", |
|
|
|
|