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