From 5be6031493ae165ef7e66c5a182adcad6f64a860 Mon Sep 17 00:00:00 2001 From: Pete Akins <pete.akins@modolabs.com> Date: Sat, 30 Jan 2016 09:27:12 -0500 Subject: [PATCH] PDO scripts should use SimpleSAML\Utils\Config::getConfigDir() to resolve config dir --- bin/importPdoMetadata.php | 2 +- bin/initMDSPdo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/importPdoMetadata.php b/bin/importPdoMetadata.php index d09dd708a..9d6e740d5 100755 --- a/bin/importPdoMetadata.php +++ b/bin/importPdoMetadata.php @@ -2,7 +2,7 @@ $baseDir = dirname(dirname(__FILE__)); require_once $baseDir . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . '_autoload.php'; -require_once $baseDir . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php'; +require_once SimpleSAML\Utils\Config::getConfigDir(). DIRECTORY_SEPARATOR . 'config.php'; # Iterate through configured metadata sources and ensure # that a PDO source exists. diff --git a/bin/initMDSPdo.php b/bin/initMDSPdo.php index 6e5159a63..48375a0b6 100755 --- a/bin/initMDSPdo.php +++ b/bin/initMDSPdo.php @@ -6,7 +6,7 @@ $baseDir = dirname(dirname(__FILE__)); // Add library autoloader and configuration require_once $baseDir . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . '_autoload.php'; -require_once $baseDir . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.php'; +require_once SimpleSAML\Utils\Config::getConfigDir(). DIRECTORY_SEPARATOR . 'config.php'; echo "Initializing Metadata Database...". PHP_EOL; -- GitLab