CC-2596: Upgrade script doesn't recognize existing Airtime 1.7->1.9
- fixed - The script will print out error and exit upon detecting any versions prior to 1.8.0: A version of Airtime older than 1.8.0 detected, please upgrade to 1.8.0 first. You will then be able to upgrade to 1.9.0 using this installer.
This commit is contained in:
parent
66593cb1a1
commit
cec9741571
|
@ -68,6 +68,8 @@ class AirtimeInstall
|
|||
if (PEAR::isError($version)) {
|
||||
return null;
|
||||
}
|
||||
// no version string detected
|
||||
$version = false;
|
||||
return $version;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,6 +71,11 @@ if (isset($version) && ($version != false) && ($version < AIRTIME_VERSION) && !i
|
|||
exit(2);
|
||||
}
|
||||
|
||||
if($version == false){
|
||||
echo "A version of Airtime older than 1.8.0 detected, please upgrade to 1.8.0 first.\n";
|
||||
echo "You will then be able to upgrade to 1.9.0 using this installer.\n";
|
||||
exit(3);
|
||||
}
|
||||
// -------------------------------------------------------------------------
|
||||
// The only way we get here is if we are doing a new install or a reinstall.
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue