From 0676d4b11fc7edc62d7a2a2035efc2a26bdeb303 Mon Sep 17 00:00:00 2001
From: Martin <martin.gasser@protonmail.com>
Date: Mon, 23 Aug 2021 14:19:33 +0200
Subject: [PATCH] detect postgres V11

---
 check_eol-versiondetect/detect-postgres | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/check_eol-versiondetect/detect-postgres b/check_eol-versiondetect/detect-postgres
index ae1d34f..5958474 100755
--- a/check_eol-versiondetect/detect-postgres
+++ b/check_eol-versiondetect/detect-postgres
@@ -7,12 +7,16 @@
 # ----------------------------------------------------------------------------
 # 2020-02-25  v1.0  <axel.hahn@iml.unibe.ch>  initial version
 # 2021-03-26  v1.1  <axel.hahn@iml.unibe.ch>  add locations if postgres is not in PATH
+# 2021-08-23  v1.1  <martin.gasser@iml.unibe.ch>  added location for v11
+
 # ----------------------------------------------------------------------------
 
 #
 # WORKAROUND: add additional locations in $PATH
 #
-otherlocations="/usr/pgsql-10/bin/ /some/other/postgres/location/bin/"
+#otherlocations="/usr/pgsql-10/bin/ /some/other/postgres/location/bin/"
+
+otherlocations="/usr/pgsql-10/bin/ /usr/lib/postgresql/11/bin"
 
 POSTGRES=$( which postgres 2>/dev/null )
 test -z "$POSTGRES" &&
-- 
GitLab