Skip to content

Commit

Permalink
Added in checks for existence of environment variable, and if so, use…
Browse files Browse the repository at this point in the history
… them for the configuration instead of the values in the db.inc.php file.

Fixed #1084
  • Loading branch information
samilliken committed Oct 14, 2018
1 parent 067e501 commit 7261992
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions db.inc.php-dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
}

// Set to true if you want to skip the installer check
$devMode = false;

$dbhost = 'localhost';
$dbport = '3306';
$dbname = 'dcim';
$dbuser = 'dcim';
$dbpass = 'dcim';
$devMode = getenv('OPENDCIM_DEBUG') ? getenv('OPENMDCIM_DEBUG'):false;
$dbhost = getenv('OPENDCIM_DB_HOST') ? getenv('OPENDCIM_DB_HOST'):'localhost';
$dbname = getenv('OPENDCIM_DB_NAME') ? getenv('OPENDCIM_DB_NAME'):'dcim';
$dbuser = getenv('OPENDCIM_DB_USER') ? getenv('OPENDCIM_DB_USER'):'dcim';
$dbpass = getenv('OPENDCIM_DB_PASS') ? getenv('OPENDCIM_DB_PASS'):'dcim';

$locale = "en_US";
$codeset = "UTF-8";
Expand Down

0 comments on commit 7261992

Please sign in to comment.