Pydio integration on SME Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{
|
|
|
|
# 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
|
|
|
|
);
|
|
|
|
}
|
|
|
|
foreach my $user ($DB->get_all_by_prop(type => 'user')){
|
|
|
|
my $home = $DB->get_prop_and_delete($user->key, 'AjxpHomeDir');
|
|
|
|
next unless defined ($home);
|
|
|
|
$user->merge_props(
|
|
|
|
PydioHomeDir => $home
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|