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:
James 2011-07-27 12:03:20 -04:00
parent 66593cb1a1
commit cec9741571
2 changed files with 7 additions and 0 deletions

View File

@ -68,6 +68,8 @@ class AirtimeInstall
if (PEAR::isError($version)) {
return null;
}
// no version string detected
$version = false;
return $version;
}
}

View File

@ -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.
// -------------------------------------------------------------------------