From 6b2ab995e7da3273be05ac7053d45667916f3bc6 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Tue, 12 Mar 2013 09:33:47 +0100 Subject: [PATCH] ykval-gen-clients -h does not include db config. --- ykval-gen-clients | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ykval-gen-clients b/ykval-gen-clients index 447890c..bddef0f 100755 --- a/ykval-gen-clients +++ b/ykval-gen-clients @@ -31,12 +31,6 @@ set_include_path(get_include_path() . PATH_SEPARATOR . "/usr/share/yubikey-val:/etc/yubico/val"); -require_once 'ykval-config.php'; -require_once 'ykval-db.php'; - -$logname="ykval-gen-clients"; -$myLog = new Log($logname); - $options = getopt("h", array("help", "email::", "notes::", "otp::", "urandom")); if(array_key_exists('h', $options) || array_key_exists('help', $options)) { @@ -54,6 +48,12 @@ if(array_key_exists('h', $options) || array_key_exists('help', $options)) { exit(1); } +require_once 'ykval-config.php'; +require_once 'ykval-db.php'; + +$logname="ykval-gen-clients"; +$myLog = new Log($logname); + $db = Db::GetDatabaseHandle($baseParams, $logname); if(!$db->connect()) {