CC-2186: Integration of a logger tool
-added upgrade support
This commit is contained in:
parent
0781f08148
commit
96551e0d91
|
@ -14,13 +14,16 @@ require_once(dirname(__FILE__).'/include/AirtimeInstall.php');
|
||||||
AirtimeInstall::ExitIfNotRoot();
|
AirtimeInstall::ExitIfNotRoot();
|
||||||
AirtimeInstall::DbConnect(true);
|
AirtimeInstall::DbConnect(true);
|
||||||
|
|
||||||
if(AirtimeInstall::DbTableExists('cc_show_rebroadcast') === true) {
|
$version = AirtimeInstall::GetAirtimeVersion();
|
||||||
$version = "1.7.0";
|
if (!$version){
|
||||||
echo "Airtime Version: ".$version." ".PHP_EOL;
|
if(AirtimeInstall::DbTableExists('cc_show_rebroadcast') === true) {
|
||||||
}
|
$version = "1.7.0";
|
||||||
else {
|
echo "Airtime Version: ".$version." ".PHP_EOL;
|
||||||
$version = "1.6";
|
}
|
||||||
echo "Airtime Version: ".$version." ".PHP_EOL;
|
else {
|
||||||
|
$version = "1.6";
|
||||||
|
echo "Airtime Version: ".$version." ".PHP_EOL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "******************************** Update Begin *********************************".PHP_EOL;
|
echo "******************************** Update Begin *********************************".PHP_EOL;
|
||||||
|
@ -31,6 +34,9 @@ if(strcmp($version, "1.7.0") < 0) {
|
||||||
if(strcmp($version, "1.8.0") < 0) {
|
if(strcmp($version, "1.8.0") < 0) {
|
||||||
system("php ".__DIR__."/upgrades/airtime-1.8/airtime-upgrade.php");
|
system("php ".__DIR__."/upgrades/airtime-1.8/airtime-upgrade.php");
|
||||||
}
|
}
|
||||||
|
if (strcmp($version, "1.9.0") < 0){
|
||||||
|
system("php ".__DIR__."/upgrades/airtime-1.9/airtime-upgrade.php");
|
||||||
|
}
|
||||||
|
|
||||||
AirtimeInstall::SetAirtimeVersion(AIRTIME_VERSION);
|
AirtimeInstall::SetAirtimeVersion(AIRTIME_VERSION);
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Airtime
|
||||||
|
* @subpackage StorageServer
|
||||||
|
* @copyright 2010 Sourcefabric O.P.S.
|
||||||
|
* @license http://www.gnu.org/licenses/gpl.txt
|
||||||
|
*/
|
||||||
|
|
||||||
|
set_include_path(__DIR__.'/../../../airtime_mvc/library' . PATH_SEPARATOR . get_include_path());
|
||||||
|
require_once __DIR__.'/../../../airtime_mvc/application/configs/conf.php';
|
||||||
|
require_once(dirname(__FILE__).'/../../include/AirtimeInstall.php');
|
||||||
|
require_once(dirname(__FILE__).'/../../include/AirtimeIni.php');
|
||||||
|
|
||||||
|
AirtimeInstall::CreateZendPhpLogFile();
|
Loading…
Reference in New Issue