CC-5781: Upgrade script for new storage quota implementation

Changed airtime conf file path so it works for saas or self-hosted users
This commit is contained in:
drigato 2014-04-16 17:24:02 -04:00
parent a4de61c2b5
commit a3be55fd60
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class UpgradeController extends Zend_Controller_Action
}
//Begin upgrade
$filename = "/etc/airtime/airtime.conf";
$filename = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf";
$values = parse_ini_file($filename, true);
$username = $values['database']['dbuser'];