smeserver-mozilla-sync-se/root/etc/e-smith/db/configuration/migrate/mozilla-sync-database

10 lines
285 B
Plaintext
Raw Normal View History

2012-09-02 18:46:36 +02:00
{
my $rec = $DB->get('mozilla-sync')
|| $DB->new_record('mozilla-sync', {type => 'service'});
my $pw = $rec->prop('DbPassword');
if (not $pw){
$pw=`/usr/bin/openssl rand -base64 40 | tr -c -d '[:alpha:]'`;
2012-09-02 18:46:36 +02:00
$rec->set_prop('DbPassword', $pw);
}
}