SAAS-83: Add ability to install Airtime components separately
-moving along...
This commit is contained in:
parent
b16fa16042
commit
3a39aacd85
6 changed files with 33 additions and 30 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue