Only update homedir ACL if required

tags/0.1.3 0.1.3
Daniel Berteaud 13 years ago
parent 332b46e886
commit 3a7c33ee0e
  1. 6
      root/etc/e-smith/events/actions/ajaxplorer-user-rights
  2. 5
      smeserver-ajaxplorer.spec

@ -79,6 +79,9 @@ else{
sub set_user_acl{
my $user = shift;
my $acl = `/usr/bin/getfacl /home/e-smith/files/users/$user 2>/dev/null | egrep -c '^user:(apache|www):'`;
chomp($acl);
return if ($acl > 0);
system('/usr/bin/setfacl',
'-m',
'u:www:x',
@ -92,6 +95,9 @@ sub set_user_acl{
sub remove_user_acl{
my $user = shift;
my $acl = `/usr/bin/getfacl /home/e-smith/files/users/$user 2>/dev/null | egrep -c '^user:(apache|www):'`;
chomp($acl);
return if ($acl < 1);
system('/usr/bin/setfacl',
'-R',
'-x',

@ -2,7 +2,7 @@
# Name: Daniel Berteaud
%define name smeserver-ajaxplorer
%define version 0.1.2
%define version 0.1.3
%define release 1
Summary: sme server integration of ajaxplorer
Name: %{name}
@ -29,6 +29,9 @@ Ajaxplorer is a rich-client browser for managing files on a web server
This contrib works with the smeserver-shared-folders addon
%changelog
* Wed Apr 18 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.3-1
- Only update homedir ACL if required
* Tue Apr 17 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.2-1
- Posibility to access home dir (Read Only)
- Fix ACL for rw users

Loading…
Cancel
Save