Mot de passe de DB sans caractères spéciaux

master
Daniel Berteaud 12 years ago
parent b750489f69
commit 6b49fefbcb
  1. 2
      root/etc/e-smith/db/configuration/migrate/mozilla-sync-database

@ -3,7 +3,7 @@
|| $DB->new_record('mozilla-sync', {type => 'service'});
my $pw = $rec->prop('DbPassword');
if (not $pw){
$pw=`/usr/bin/openssl rand -base64 15 | tr -c -d '[:graph:]'`;
$pw=`/usr/bin/openssl rand -base64 40 | tr -c -d '[:alpha:]'`;
$rec->set_prop('DbPassword', $pw);
}
}

Loading…
Cancel
Save