Skip to content

Commit

Permalink
Bumped version to 2.8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jprochazka committed Oct 19, 2024
1 parent 7428824 commit f869054
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 9 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

The following is a history of the changes made to this project.

## v2.8.8 *(next release)*
## v2.8.8 *(October 18th, 2024)*

* FlightAware's version of the tcl-tls is now built and installed on Bullseye.
* Clones athe trixie branch directly when using the forked version of piaware_builder.
* Clones the trixie branch directly when using the forked version of piaware_builder.
* The portal upgrade path to v2.8.7 was missing.

## v2.8.7 *(August 23rd, 2024)*

Expand Down
3 changes: 2 additions & 1 deletion CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## Collaborators and Contributors

First and foremost I would like to thank the collaborators and contributors who have contributed to
the project directly. Their time and effort is greatly appreciated by myself as well as many others.
the project directly through code contributions made directly to the repository. Their time and effort
is greatly appreciated by myself as well as many others I am sure.

* @adamkaplan
* @atbPy
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ The project currently supports the following Linux distributions.
* Debian _(Bookworm and Bullseye)_
* DietPi _(Bookworm and Bullseye)_
* Raspberry PI OS _(Bookworm and Bullseye)_
* Ubuntu _(Jammy Jellyfish, Focal Fossa and Noble Numbat)_
* Ubuntu _(Jammy Jellyfish, Focal Fossa and Noble Numbat*)_

Support is available via this repository through the use of the issue tracker or discussions.

_Please Note that Ubuntu Noble Numbat support employs an unofficial fix for PiAware._
_* Please Note that Ubuntu Noble Numbat support employs an unofficial fix for PiAware._
2 changes: 1 addition & 1 deletion build/portal/html/classes/template.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function display(&$pageData) {

// Check if the portal is installed or needs upgraded.

$thisVersion = "2.8.7";
$thisVersion = "2.8.8";

if (!file_exists($_SERVER['DOCUMENT_ROOT']."/classes/settings.class.php")) {
header ("Location: /install/install.php");
Expand Down
2 changes: 1 addition & 1 deletion build/portal/html/install/index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
// The most current stable release.
$thisVersion = "2.8.7";
$thisVersion = "2.8.8";

// Begin the upgrade process if this release is newer than what is installed.
if (file_exists($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."settings.class.php")) {
Expand Down
38 changes: 38 additions & 0 deletions build/portal/html/install/upgrade-v2.8.8.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
///////////////////////
// UPGRADE TO V2.8.8
///////////////////////

// --------------------------------------------------------
// Updates the version to 2.8.8
// --------------------------------------------------------

$results = upgrade();
exit(json_encode($results));

function upgrade() {
require_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."common.class.php");
require_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."classes".DIRECTORY_SEPARATOR."settings.class.php");

$common = new common();
$settings = new settings();

try {
// Update the version and patch settings
$common->updateSetting("version", "2.8.8");
$common->updateSetting("patch", "");

// The upgrade process completed successfully
$results['success'] = TRUE;
$results['message'] = "Upgrade to v2.8.8 successful.";
return $results;

} catch(Exception $e) {
// Something went wrong during this upgrade process
$results['success'] = FALSE;
$results['message'] = $e->getMessage();
return $results;
}
}
?>

20 changes: 19 additions & 1 deletion build/portal/html/install/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$common = new common();

// The most current stable release.
$thisVersion = "2.8.7";
$thisVersion = "2.8.8";

// Begin the upgrade process if this release is newer than what is installed.
if ($common->getSetting("version") == $thisVersion) {
Expand Down Expand Up @@ -211,6 +211,24 @@
$version = "2.8.6";
}

// UPGRADE TO V2.8.7
if ($common->getSetting("version") == "2.8.6" && $success) {
$json = file_get_contents("http://localhost/install/upgrade-v2.8.7.php");
$results = json_decode($json, TRUE);
$success = $results['success'];
$message = $results['message'];
$version = "2.8.7";
}

// UPGRADE TO V2.8.8
if ($common->getSetting("version") == "2.8.7" && $success) {
$json = file_get_contents("http://localhost/install/upgrade-v2.8.8.php");
$results = json_decode($json, TRUE);
$success = $results['success'];
$message = $results['message'];
$version = "2.8.8";
}

require_once($_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR."admin".DIRECTORY_SEPARATOR."includes".DIRECTORY_SEPARATOR."header.inc.php");

// Display the instalation wizard.
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## ASSIGN VARIABLE

project_version="2.8.7"
project_version="2.8.8"

printf -v date_time '%(%Y-%m-%d_%H-%M-%S)T' -1
log_file="adsb-installer_${date_time}.log"
Expand Down

0 comments on commit f869054

Please sign in to comment.