Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandivercd290c2c667e
diff --git a/scripts/lib/install b/scripts/lib/install
index f47713d42d3..6e65a53466c 100755
--- a/scripts/lib/install
+++ b/scripts/lib/install
@@ -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