diff --git a/root/etc/cron.daily/pydio-indexer b/root/etc/cron.daily/pydio-indexer index 989949c..fb8d4db 100644 --- a/root/etc/cron.daily/pydio-indexer +++ b/root/etc/cron.daily/pydio-indexer @@ -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 ?)