Migrate user props from AjxpHomeDir to PydioHomeDir

tags/0.2.0
Daniel Berteaud 11 years ago
parent eb4db1e78b
commit 1b5123d525
  1. 7
      root/etc/e-smith/db/accounts/migrate/Ajaxplorer2Pydio
  2. 2
      root/etc/e-smith/events/actions/pydio-user-rights

@ -12,4 +12,11 @@ foreach my $share ($DB->get_all_by_prop(type => 'share')){
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
);
}
}

@ -111,7 +111,7 @@ if ($homedir eq 'enabled'){
elsif ($homedir eq 'users'){
foreach ($a->users){
my $name = $_->key;
if (($_->prop('AjxpHomeDir') || 'disabled') eq 'enabled'){
if (($_->prop('PydioHomeDir') || 'disabled') eq 'enabled'){
set_user_acl($name);
}
else{

Loading…
Cancel
Save