From fcd6e2a33d6d9960bc6fe89b82fe26f542e27e6a Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Mon, 28 Mar 2022 07:06:39 -0400 Subject: [PATCH] Adjust pgtap install steps to correctly grab versoin postgresql-server-dev-all is rather unhelpful when trying to determine the pg version.... Signed-off-by: Jason Boyer --- installer/stretch/eg_stretch_installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/stretch/eg_stretch_installer.sh b/installer/stretch/eg_stretch_installer.sh index 3f45c02f1..5715ecc41 100755 --- a/installer/stretch/eg_stretch_installer.sh +++ b/installer/stretch/eg_stretch_installer.sh @@ -911,7 +911,7 @@ function evergreen_db_create { # output the name of the currently installed pg server dev package, then # throw away everything up to and including the last '-' to get the correct pg version - PGVERS=`dpkg-query --showformat="\\${binary:Package}" --show 'postgresql-server-dev-*'` + PGVERS=`dpkg-query --showformat="\\${binary:Package}\\n" --show 'postgresql-server-dev-*' | grep -v postgresql-server-dev-all` apt-get install postgresql-${PGVERS##*-}-pgtap echo 'CREATE EXTENSION pgtap;' | su - postgres -c "psql evergreen" -- 2.11.0