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

master
Daniel Berteaud 12 年前
父节点 b750489f69
当前提交 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);
}
}

正在加载...
取消
保存