From 2fc152b87d82f0cca4f205d63144c416a82fa9cf Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 17 Oct 2013 17:36:58 +0200 Subject: [PATCH] Rename and adjust events scripts (Ajaxplorer -> Pydio) --- .../{ajaxplorer-user-rights => pydio-user-rights} | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) rename root/etc/e-smith/events/actions/{ajaxplorer-user-rights => pydio-user-rights} (89%) 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; }