Fix the indexer cron job

This commit is contained in:
Daniel Berteaud 2014-02-18 10:15:39 +01:00
parent 3d301c6009
commit 8693166968
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ foreach (0..32){
}
foreach my $share ($a->get_all_by_prop(type => 'share')){
$pydio = $share->prop('Pydio') || 'disabled';
$indexer = $share->prop('PydioIndexer') || '';
my $indexer = $share->prop('PydioIndexer') || '';
next if ($pydio ne 'enabled' || $indexer eq 'disabled' || ($indexer ne 'enabled' && $defaultIndexer ne 'enabled'));
my $name = $share->key;
# Check if the lock file is present and if it's too old (last index crashed ?)