|
|
@ -96,6 +96,9 @@ foreach my $user (($a->users),$a->get('admin')){ |
|
|
|
open WROLE, '+>', "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; |
|
|
|
open WROLE, '+>', "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; |
|
|
|
print WROLE serialize($data); |
|
|
|
print WROLE serialize($data); |
|
|
|
close WROLE; |
|
|
|
close WROLE; |
|
|
|
|
|
|
|
# Makes sure role.ser has the correct privileges |
|
|
|
|
|
|
|
chmod 0770, "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; |
|
|
|
|
|
|
|
chown '0', '102', "/var/lib/pydio/plugins/auth.serial/$name/role.ser"; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
my $pydio = $c->get('pydio') || die "Couldn't find pydio entry in ConfigDB\n"; |
|
|
|
my $pydio = $c->get('pydio') || die "Couldn't find pydio entry in ConfigDB\n"; |
|
|
|