Skip to content

Commit

Permalink
Version to 2.3.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Feb 11, 2019
1 parent d5d4f85 commit 539ba62
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion code_igniter/application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exit('No direct script access allowed');
}
$config['web_internal_version'] = '20190211';
$config['web_display_version'] = '2.4.0';
$config['web_display_version'] = '2.3.3';
# $config['debug'] = false;
/*
|--------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions code_igniter/application/controllers/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,8 @@ public function update()
}

if (($db_internal_version < '20190211') and ($this->db->platform() == 'mysql')) {
# upgrade for 2.4.0
include "db_upgrades/db_2.4.0.php";
# upgrade for 2.3.3
include "db_upgrades/db_2.3.3.php";
}

$this->data['include'] = 'v_database_update';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
*
**/

$this->log_db('Upgrade database to 2.4.0 commenced');
$this->log_db('Upgrade database to 2.3.3 commenced');

# set our versions
$sql = "UPDATE `configuration` SET `value` = '20190211' WHERE `name` = 'internal_version'";
$this->db->query($sql);
$this->log_db($this->db->last_query());

$sql = "UPDATE `configuration` SET `value` = '2.4.0' WHERE `name` = 'display_version'";
$sql = "UPDATE `configuration` SET `value` = '2.3.3' WHERE `name` = 'display_version'";
$this->db->query($sql);
$this->log_db($this->db->last_query());

$this->log_db("Upgrade database to 2.4.0 completed");
$this->log_db("Upgrade database to 2.3.3 completed");
$this->config->config['internal_version'] = '20190211';
$this->config->config['display_version'] = '2.4.0';
$this->config->config['display_version'] = '2.3.3';
2 changes: 1 addition & 1 deletion other/openaudit_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ INSERT INTO `configuration` VALUES (6,'discovery_linux_script_directory','/tmp/'
INSERT INTO `configuration` VALUES (7,'discovery_linux_script_permissions','700','text','y','system','2000-01-01 00:00:00','The permissions set on the audit_linux.sh script when it is copied to the target device.');
INSERT INTO `configuration` VALUES (8,'discovery_use_dns','y','bool','y','system','2000-01-01 00:00:00','Should we use DNS for looking up the hostname and domain.');
INSERT INTO `configuration` VALUES (9,'discovery_use_ipmi','y','bool','y','system','2000-01-01 00:00:00','Should we use ipmitool for discovering management ports if ipmitool is installed.');
INSERT INTO `configuration` VALUES (10,'display_version','2.4.0','text','n','system','2000-01-01 00:00:00','The version shown on the web pages.');
INSERT INTO `configuration` VALUES (10,'display_version','2.3.3','text','n','system','2000-01-01 00:00:00','The version shown on the web pages.');
INSERT INTO `configuration` VALUES (11,'download_reports','download','text','y','system','2000-01-01 00:00:00','Tells Open-AudIT to advise the browser to download as a file or display the csv, xml, json reports. Valid values are download and display.');
INSERT INTO `configuration` VALUES (12,'graph_days','30','number','y','system','2000-01-01 00:00:00','The number of days to report on for the Enterprise graphs.');
INSERT INTO `configuration` VALUES (13,'homepage','groups','text','y','system','2000-01-01 00:00:00','Any links to the default page should be directed to this endpoint.');
Expand Down

0 comments on commit 539ba62

Please sign in to comment.