From: Greg Sabino Mullane Date: Fri, 14 Jan 2011 01:22:07 +0000 (-0500) Subject: Allow /usr/local/etc as an alternative location for the check_postgresrc file (Hywel... X-Git-Tag: 2.16.0~11 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=4a654ccd4423a874bc0865b561649ed3f4ae1e4c;p=check_postgres.git Allow /usr/local/etc as an alternative location for the check_postgresrc file (Hywel Mallett) --- 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