generated from smedev/Template-for-SMEServer-Core-Package
* Mon Feb 17 2025 Jean-Philippe Pialasse <jpp@koozali.org> 1.6-7.sme
- fix roundcube not accessible after install [SME: 12928] - avoid need to relog in case of reloading of configuration [SME: 12929]
This commit is contained in:
@@ -8,13 +8,23 @@
|
||||
$DB->set_prop('roundcube','access', "private");
|
||||
$DB->set_prop('roundcube','access', "public") if ($PublicAccess =~ /global/);
|
||||
$DB->set_prop('roundcube','status', "disabled") if ($PublicAccess == "none");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
my $pw = $rec->prop('DbPassword');
|
||||
return "" if $pw;
|
||||
|
||||
$rec->set_prop('DbPassword', sprintf("%15.0f", int( (1000000000000000) * rand() )));
|
||||
$rec->set_prop('DbPassword', sprintf("%15.0f", int( (1000000000000000) * rand() ))) unless $pw;
|
||||
|
||||
my $pwd = $rec->prop('des_key');
|
||||
unless ($pwd) {
|
||||
open( RANDOM, "/dev/urandom" );
|
||||
my $buf;
|
||||
read( RANDOM, $buf, 17);
|
||||
$pwd = encode_base64($buf);
|
||||
chomp $pwd;
|
||||
close RANDOM;
|
||||
$rec->set_prop('des_key', $pwd);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user