CC-2824: deb 1.7 upgrade to 1.9.4. /usr/share/airtime folder is empty
This commit is contained in:
parent
44a1ffe79b
commit
b3789774a3
|
@ -55,27 +55,35 @@ $SCRIPTPATH = __DIR__;
|
|||
|
||||
if (strcmp($version, "1.7.0") < 0){
|
||||
passthru("php --php-ini $SCRIPTPATH/../airtime-php.ini --file $SCRIPTPATH/../upgrades/airtime-1.7.0/airtime-upgrade.php");
|
||||
readline("Press any key");
|
||||
}
|
||||
if (strcmp($version, "1.8.0") < 0){
|
||||
passthru("php --php-ini $SCRIPTPATH/../airtime-php.ini --file $SCRIPTPATH/../upgrades/airtime-1.8.0/airtime-upgrade.php");
|
||||
readline("Press any key");
|
||||
}
|
||||
if (strcmp($version, "1.8.1") < 0){
|
||||
passthru("php --php-ini $SCRIPTPATH/../airtime-php.ini --file $SCRIPTPATH/../upgrades/airtime-1.8.1/airtime-upgrade.php");
|
||||
readline("Press any key");
|
||||
}
|
||||
if (strcmp($version, "1.8.2") < 0){
|
||||
passthru("php --php-ini $SCRIPTPATH/../airtime-php.ini --file $SCRIPTPATH/../upgrades/airtime-1.8.2/airtime-upgrade.php");
|
||||
readline("Press any key");
|
||||
}
|
||||
if (strcmp($version, "1.9.0") < 0){
|
||||
passthru("php --php-ini $SCRIPTPATH/../airtime-php.ini --file $SCRIPTPATH/../upgrades/airtime-1.9.0/airtime-upgrade.php");
|
||||
readline("Press any key");
|
||||
}
|
||||
if (strcmp($version, "1.9.2") < 0){
|
||||
passthru("php --php-ini $SCRIPTPATH/../airtime-php.ini --file $SCRIPTPATH/../upgrades/airtime-1.9.2/airtime-upgrade.php");
|
||||
readline("Press any key");
|
||||
}
|
||||
if (strcmp($version, "1.9.3") < 0){
|
||||
passthru("php --php-ini $SCRIPTPATH/../airtime-php.ini --file $SCRIPTPATH/../upgrades/airtime-1.9.3/airtime-upgrade.php");
|
||||
readline("Press any key");
|
||||
}
|
||||
if (strcmp($version, "1.9.4") < 0){
|
||||
passthru("php --php-ini $SCRIPTPATH/../airtime-php.ini --file $SCRIPTPATH/../upgrades/airtime-1.9.4/airtime-upgrade.php");
|
||||
readline("Press any key");
|
||||
}
|
||||
|
||||
//set the new version in the database.
|
||||
|
|
|
@ -238,6 +238,12 @@ function LoadConfig($CC_CONFIG) {
|
|||
return $CC_CONFIG;
|
||||
}
|
||||
|
||||
function movePhpFiles($CC_CONFIG){
|
||||
$baseDir = $CC_CONFIG['baseFilesDir'];
|
||||
echo "Copying Server files from $baseDir/airtime_mvc to /var/www";
|
||||
exec("copy -R $baseDir/airtime_mvc/* /var/www");
|
||||
}
|
||||
|
||||
// Backup the config files
|
||||
$suffix = date("Ymdhis")."-1.8.0";
|
||||
foreach ($configFiles as $conf) {
|
||||
|
@ -252,4 +258,7 @@ CreateIniFiles($default_suffix);
|
|||
echo "* Initializing INI files".PHP_EOL;
|
||||
MergeConfigFiles($configFiles, $suffix);
|
||||
|
||||
|
||||
$CC_CONFIG = LoadConfig($CC_CONFIG);
|
||||
|
||||
movePhpFiles($CC_CONFIG);
|
||||
|
|
|
@ -581,16 +581,6 @@ class Airtime190Upgrade{
|
|||
}
|
||||
|
||||
|
||||
// we don't need thses functions anymore as it's done in CreateSymlinksToUtils()
|
||||
/*public static function removeOldAirtimeImport(){
|
||||
exec('rm -f "/usr/bin/airtime-import"');
|
||||
}
|
||||
|
||||
public static function updateAirtimeImportSymLink(){
|
||||
$dir = "/usr/lib/airtime/utils/airtime-import/airtime-import";
|
||||
exec("ln -s $dir /usr/bin/airtime-import");
|
||||
}*/
|
||||
|
||||
public static function execSqlQuery($sql){
|
||||
global $CC_DBC;
|
||||
|
||||
|
|
Loading…
Reference in New Issue