installer: Be tighter about the search for postgres server packages.

This commit is contained in:
Alex Vandiver 2020-06-27 03:05:21 +00:00 committed by Tim Abbott
parent 6d6d43188d
commit cd290c2c66
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ case ",$PUPPET_CLASSES," in
# We're going to install Postgres from the postgres apt
# repository; this may conflict with the existing postgres.
OTHER_PG="$(dpkg --get-selections |
grep '^postgresql-[1-9].*\binstall$' |
grep -E '^postgresql-[0-9]+\s+install$' |
grep -v "^postgresql-$POSTGRES_VERSION\b" |
cut -f 1)" || true
if [ -n "$OTHER_PG" ]; then