Added dev docs.
This commit is contained in:
parent
435f9a9bd1
commit
873e8cb7e1
|
@ -46,18 +46,23 @@ if (isset($opts->h)) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
//the current version exists.
|
// The current version is already installed.
|
||||||
if(isset($version) && ($version != false) && ($version == AIRTIME_VERSION) && !isset($opts->r)) {
|
if(isset($version) && ($version != false) && ($version == AIRTIME_VERSION) && !isset($opts->r)) {
|
||||||
echo "Airtime $version is already installed.".PHP_EOL;
|
echo "Airtime $version is already installed.".PHP_EOL;
|
||||||
echo $opts->getUsageMessage();
|
echo $opts->getUsageMessage();
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
//a previous version exists.
|
// A previous version exists - if so, upgrade.
|
||||||
if(isset($version) && ($version != false) && ($version < AIRTIME_VERSION)) {
|
if(isset($version) && ($version != false) && ($version < AIRTIME_VERSION)) {
|
||||||
echo "Airtime version $version found.".PHP_EOL;
|
echo "Airtime version $version found.".PHP_EOL;
|
||||||
require_once("airtime-upgrade.php");
|
require_once("airtime-upgrade.php");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// The only way we get here is if we are doing a new install or a reinstall.
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
if(is_null($version)) {
|
if(is_null($version)) {
|
||||||
$newInstall = true;
|
$newInstall = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue