SAAS-83: Add ability to install Airtime components separately

-moving along...
This commit is contained in:
Martin Konecny 2011-11-26 00:57:14 -05:00
parent b16fa16042
commit 3a39aacd85
6 changed files with 33 additions and 30 deletions

View file

@ -13,6 +13,7 @@
* Returns 2 if the same version of Airtime is installed
* Returns 3 if a version of Airtime that we can't upgrade from is installed.
* Returns 4 if we need to print help message.
* Returns 5 if we need should only install apache files (web-only).
*/
require_once(dirname(__FILE__).'/AirtimeInstall.php');
require_once(__DIR__.'/airtime-constants.php');
@ -20,8 +21,9 @@ require_once(__DIR__.'/airtime-constants.php');
AirtimeInstall::ExitIfNotRoot();
$opts = AirtimeInstall::getOpts();
if ($opts == NULL) {
exit(4);
if (is_null($opts)) {
exit(0);
}
if (isset($opts->h)) {
@ -29,6 +31,11 @@ if (isset($opts->h)) {
exit(4);
}
//install media-monitor
if (isset($opts->w)){
exit(5);
}
$version = AirtimeInstall::GetVersionInstalled();
// The current version is already installed.
echo "* Checking for existing install of Airtime...".PHP_EOL;