Skip to content

Commit e826c57

Browse files
author
David Christensen
committed
Fix a few regexes which were unexpectedly tested against 7.x versions (eep!)
1 parent cc8970e commit e826c57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check_postgres.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,7 @@ sub run_command {
27282728
if ($db->{error}) {
27292729
ndie $db->{error};
27302730
}
2731-
if ($db->{slurp} !~ /([8-9]\.\d+|1\d+)/) {
2731+
if ($db->{slurp} !~ /([789]\.\d+|1\d+)/) {
27322732
ndie msg('die-badversion', $db->{slurp});
27332733
}
27342734
$db->{version} = $1;
@@ -8345,7 +8345,7 @@ sub check_version {
83458345

83468346
my ($warning, $critical) = validate_range({type => 'version', forcemrtg => 1});
83478347

8348-
my ($warnfull, $critfull) = (($warning =~ /^(?:1\d+|[8-9]\.\d+)$/ ? 0 : 1),($critical =~ /^(?:1\d+|[8-9]\.\d+)$/ ? 0 : 1));
8348+
my ($warnfull, $critfull) = (($warning =~ /^(?:1\d+|[789]\.\d+)$/ ? 0 : 1),($critical =~ /^(?:1\d+|[789]\.\d+)$/ ? 0 : 1));
83498349

83508350
my $info = run_command('SELECT version() AS version');
83518351

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy