From 4a654ccd4423a874bc0865b561649ed3f4ae1e4c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 13 Jan 2011 20:22:07 -0500 Subject: [PATCH] Allow /usr/local/etc as an alternative location for the check_postgresrc file (Hywel Mallett) --- check_postgres.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/check_postgres.pl b/check_postgres.pl index db65bea93..d67ab0652 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -638,6 +638,9 @@ if (! $opt{'no-check_postgresrc'}) { elsif (-e '/etc/check_postgresrc') { $rcfile = '/etc/check_postgresrc'; } + elsif (-e '/usr/local/etc/check_postgresrc') { + $rcfile = '/usr/local/etc/check_postgresrc'; + } } ## We need a temporary hash so that multi-value options can be overridden on the command line my %tempopt; @@ -8932,6 +8935,8 @@ Items not specifically attributed are by Greg Sabino Mullane. Add cache-busting for the version-grabbing utilities. Fix problem with going to next method for new_version_pg (Greg Sabino Mullane, reported by Hywel Mallett in bug #65) + Allow /usr/local/etc as an alternative location for the + check_postgresrc file (Hywel Mallett) =item B January 3, 2011 -- 2.30.2