diff --git a/root/etc/e-smith/events/actions/ajaxplorer-user-rights b/root/etc/e-smith/events/actions/pydio-user-rights similarity index 89% rename from root/etc/e-smith/events/actions/ajaxplorer-user-rights rename to root/etc/e-smith/events/actions/pydio-user-rights index d728b6f..05e6c0c 100644 --- a/root/etc/e-smith/events/actions/ajaxplorer-user-rights +++ b/root/etc/e-smith/events/actions/pydio-user-rights @@ -1,7 +1,7 @@ #!/usr/bin/perl -w #---------------------------------------------------------------------- -# copyright (C) 2011-2012 Firewall Services +# copyright (C) 2011-2013 Firewall Services # Daniel Berteaud # # This program is free software; you can redistribute it and/or modify @@ -32,22 +32,22 @@ my $a = esmith::AccountsDB->open_ro; my $domain = $c->get('DomainName')->value; # Remove active sessions -unlink(); +unlink(); # Remove plugin and i18n cache -unlink(); -unlink(); +unlink(); +unlink(); foreach my $user (($a->users),$a->get('admin')){ my $name = $user->key; my $first = $user->prop('FirstName') || ''; my $last = $user->prop('LastName') || $name; my $data; - mkpath('/var/lib/ajaxplorer/plugins/auth.serial/' . $name); - chmod 0770, "/var/lib/ajaxplorer/plugins/auth.serial/$name"; - chown '0', '102', "/var/lib/ajaxplorer/plugins/auth.serial/$name"; - if (-s "/var/lib/ajaxplorer/plugins/auth.serial/$name/role.ser"){ - open RROLE, "/var/lib/ajaxplorer/plugins/auth.serial/$name/role.ser"; + mkpath('/var/lib/pydio/plugins/auth.serial/' . $name); + chmod 0770, "/var/lib/pydio/plugins/auth.serial/$name"; + chown '0', '102', "/var/lib/pydio/plugins/auth.serial/$name"; + if (-s "/var/lib/pydio/plugins/auth.serial/$name/role.ser"){ + open RROLE, "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; $data = ; close RROLE; $data = unserialize($data); @@ -94,7 +94,7 @@ foreach my $user (($a->users),$a->get('admin')){ $data->{"\0*\0parameters"}->{'AJXP_REPO_SCOPE_ALL'}->{'core.conf'}->{'email'} = "$name\@$domain"; $data->{"\0*\0parameters"}->{'AJXP_REPO_SCOPE_ALL'}->{'core.conf'}->{'USER_DISPLAY_NAME'} = "$first $last"; - open WROLE, '+>', "/var/lib/ajaxplorer/plugins/auth.serial/$name/role.ser"; + open WROLE, '+>', "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; print WROLE serialize($data); close WROLE; }