diff --git a/root/etc/cron.daily/pydio-indexer b/root/etc/cron.daily/pydio-indexer index b6dc6da..5e4c8cb 100644 --- a/root/etc/cron.daily/pydio-indexer +++ b/root/etc/cron.daily/pydio-indexer @@ -21,8 +21,8 @@ foreach (0..32){ $id .= $chars[rand @chars]; } foreach my $share ($a->get_all_by_prop(type => 'share')){ - $pydio = $share->prop('Ajaxplorer') || 'disabled'; - $indexer = $share->prop('AjaxplorerIndexer') || 'enabled'; + $pydio = $share->prop('Pydio') || 'disabled'; + $indexer = $share->prop('PydioIndexer') || 'enabled'; next if ($pydio ne 'enabled' || $indexer ne 'enabled'); my $name = $share->key; # Check if the lock file is present and if it's too old (last index crashed ?) diff --git a/root/etc/e-smith/db/accounts/migrate/Ajaxplorer2Pydio b/root/etc/e-smith/db/accounts/migrate/Ajaxplorer2Pydio new file mode 100644 index 0000000..810a265 --- /dev/null +++ b/root/etc/e-smith/db/accounts/migrate/Ajaxplorer2Pydio @@ -0,0 +1,15 @@ +{ +# Rename Ajaxplorer props to Pydio +foreach my $share ($DB->get_all_by_prop(type => 'share')){ + my $ajaxplorer = $DB->get_prop_and_delete($share->key, 'Ajaxplorer'); + next unless defined ($ajaxplorer); + $share->merge_props( + Pydio => $ajaxplorer + ); + my $indexer = $DB->get_prop_and_delete($share->key, 'AjaxplorerIndexer'); + next unless defined ($indexer); + $share->merge_props( + PydioIndexer => $indexer + ); +} +}