CC-2132: Airtime upgrade not working

-fixed up upgrade scriupt from 1.6.x to 1.7.0
-created an AirtimeIni php class
This commit is contained in:
martin 2011-03-30 12:01:26 -04:00
parent f5db45ecfe
commit 85cdc00254
5 changed files with 128 additions and 120 deletions

View file

@ -5,9 +5,9 @@
* @license http://www.gnu.org/licenses/gpl.txt
*/
require_once(dirname(__FILE__).'/include/installInit.php');
require_once(dirname(__FILE__).'/include/AirtimeIni.php');
// Need to check that we are superuser before running this.
ExitIfNotRoot();
AirtimeIni::ExitIfNotRoot();
require_once(dirname(__FILE__).'/../application/configs/conf.php');
require_once(dirname(__FILE__).'/include/AirtimeInstall.php');
@ -73,7 +73,7 @@ if ($results == 0) {
// Delete files
//------------------------------------------------------------------------
AirtimeInstall::DeleteFilesRecursive($CC_CONFIG['storageDir']);
RemoveINIFile();
AirtimeIni::RemoveIniFiles();
$command = "python ".__DIR__."/../python_apps/pypo/install/pypo-uninstall.py";
system($command);