-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1465 from GlobalNOC/2.0.17-dev
2.0.17 dev
- Loading branch information
Showing
28 changed files
with
348 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
OESS_VERSION=2.0.16 | ||
OESS_VERSION=2.0.17 | ||
OESS_NETWORK=oess | ||
TEST_FILES= | ||
MAILHOST=localhost | ||
|
||
|
||
include .env | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
NAME= oess-core | ||
VERSION = 2.0.16 | ||
VERSION = 2.0.17 | ||
|
||
rpm: dist | ||
rpmbuild -ta dist/$(NAME)-$(VERSION).tar.gz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
NAME= oess-frontend | ||
VERSION = 2.0.16 | ||
VERSION = 2.0.17 | ||
|
||
rpm: dist | ||
rpmbuild -ta dist/$(NAME)-$(VERSION).tar.gz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#!/usr/bin/perl | ||
#------------------------------------------------------------------- | ||
#----- OESS 2.0.16 - 2.0.17 upgrade module | ||
#----- | ||
#----- Copyright(C) 2010 The Trustees of Indiana University | ||
#-------------------------------------------------------------------- | ||
#----- $HeadURL: $ | ||
#----- $Id: $ | ||
#----- | ||
#----- This is run when upgrading the database from | ||
#----- version 2.0.16 to version 2.0.17 | ||
#-------------------------------------------------------------------- | ||
|
||
use strict; | ||
use warnings; | ||
use OESS::Database; | ||
|
||
my $prev_version = "2.0.16"; | ||
my $version = "2.0.17"; | ||
|
||
sub main{ | ||
print "*******************************************************************\n"; | ||
print "********* OESS DB UPGRADE ************\n"; | ||
print "*******************************************************************\n"; | ||
print "********* This will upgrade from $prev_version to $version **********\n"; | ||
print "********* of the OESS DB any other version will not work ************\n"; | ||
|
||
continue_parameter("Do you wish to continue"); | ||
|
||
my $dbq = new OESS::Database(); | ||
my $current_version = $dbq->get_oess_schema_version(); | ||
if($current_version eq $prev_version){ | ||
eval { | ||
$dbq->{'dbh'}->begin_work(); | ||
upgrade($dbq); | ||
$dbq->{'dbh'}->commit(); | ||
}; | ||
if ($@) { | ||
$dbq->{'dbh'}->rollback(); | ||
print "$@\n"; | ||
exit; | ||
} | ||
} else{ | ||
print "Wrong version of OESS DB\n"; | ||
print "This script only upgrades from version $prev_version to $version\n"; | ||
exit; | ||
} | ||
|
||
print STDERR "Upgrade Successful!!\n"; | ||
} | ||
|
||
sub upgrade{ | ||
my $dbq = shift; | ||
my $term = shift; | ||
my $dbh = $dbq->{'dbh'}; | ||
my $str; | ||
my $sth; | ||
|
||
$str = "update oess_version set version = '$version'"; | ||
$sth = $dbh->prepare($str) or die "Unable to prepare version update \n"; | ||
$sth->execute() or die "Unable to update version\n"; | ||
} | ||
|
||
main(); | ||
|
||
sub continue_parameter { | ||
my $name = shift; | ||
|
||
print "$name [y/n]: "; | ||
my $yes_or_no = <>; | ||
chomp($yes_or_no); | ||
|
||
exit(0) if ($yes_or_no !~ /y/i || $yes_or_no =~ /n/i); | ||
} | ||
|
||
sub required_parameter { | ||
my $name = shift; | ||
|
||
while (1) { | ||
print "$name (required): "; | ||
my $response = <>; | ||
chomp($response); | ||
|
||
return $response if ($response); | ||
|
||
print "\nThis option is required!\n\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.