-Allow etc and stor directories to be configurable

This commit is contained in:
Martin Konecny 2011-12-22 17:21:18 -05:00
parent ac50c279f7
commit a55b47efff
4 changed files with 20 additions and 7 deletions

View file

@ -23,7 +23,9 @@ $CC_CONFIG = array(
'phingPath' => dirname(__FILE__).'/../../library/phing'
);
Config::loadConfig("/etc/airtime/airtime.conf");
$configFile = isset($_SERVER['AIRTIME_CONF']) ? $_SERVER['AIRTIME_CONF'] : "/etc/airtime/airtime.conf";
Config::loadConfig($configFile);
// Add database table names
$CC_CONFIG['playListTable'] = $CC_CONFIG['tblNamePrefix'].'playlist';