mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-07 18:54:23 +01:00
mend things broken after db rewrite merge.
This commit is contained in:
parent
ee36db3be1
commit
471ed5d077
@ -37,11 +37,7 @@ if ($argc==2 && strcmp($argv[1], "config") == 0) {
|
||||
}
|
||||
|
||||
# Connect to db
|
||||
$db = new Db($baseParams['__YKVAL_DB_DSN__'],
|
||||
$baseParams['__YKVAL_DB_USER__'],
|
||||
$baseParams['__YKVAL_DB_PW__'],
|
||||
$baseParams['__YKVAL_DB_OPTIONS__'],
|
||||
'ykval-munin-yubikeystats:db');
|
||||
$db = Db::GetDatabaseHandle($baseParams, 'ykval-munin-yubikeystats');
|
||||
if (!$db->connect()) {
|
||||
logdie($myLog, 'ERROR Database connect error (1)');
|
||||
}
|
||||
|
@ -25,11 +25,7 @@ if (!preg_match("/^([cbdefghijklnrtuv]{0,16})$/", $yk)) {
|
||||
$myLog->addField('yk', $yk);
|
||||
|
||||
# Connect to db
|
||||
$db = new Db($baseParams['__YKVAL_DB_DSN__'],
|
||||
$baseParams['__YKVAL_DB_USER__'],
|
||||
$baseParams['__YKVAL_DB_PW__'],
|
||||
$baseParams['__YKVAL_DB_OPTIONS__'],
|
||||
'ykval-resync:db');
|
||||
$db = Db::GetDatabaseHandle($baseParams, 'ykval-resync');
|
||||
if (!$db->connect()) {
|
||||
logdie($myLog, 'ERROR Database connect error (1)');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user