From: Jason Boyer Date: Mon, 28 Mar 2022 11:06:39 +0000 (-0400) Subject: Adjust pgtap install steps to correctly grab versoin X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fcd6e2a33d6d9960bc6fe89b82fe26f542e27e6a;p=working%2Frandom.git 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 --- 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"