modified the database code to allow custom pgsql password

This commit is contained in:
Robb Ebright 2017-11-13 15:03:15 -05:00
parent d58468185c
commit b89f159fe8
3 changed files with 9 additions and 11 deletions

View file

@ -104,7 +104,7 @@ class MediaSetup extends Setup {
function setupMusicDirectory() {
try {
$_SERVER['AIRTIME_CONF'] = AIRTIME_CONF_TEMP_PATH;
Propel::init(CONFIG_PATH . "airtime-conf-production.php");
Propel::init(AIRTIME_CONF_TEMP_PATH);
$con = Propel::getConnection();
} catch(Exception $e) {
self::$message = "Failed to insert media folder; database isn't configured properly!";