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.

ci: Test that the installed PostgreSQL was what was asked for.

Alex Vandiverdffbd9145216
diff --git a/tools/ci/production-install b/tools/ci/production-install
index 09af9589558..a076314827c 100755
--- a/tools/ci/production-install
+++ b/tools/ci/production-install
@@ -80,6 +80,10 @@ if [ -n "${POSTGRESQL_VERSION:-}" ]; then
echo "Installer did not install the PostgreSQL $POSTGRESQL_VERSION that we asked for!"
exit 1
fi
+ if ! su - zulip -c "psql -tc 'select version()'" | grep -q "^ PostgreSQL $POSTGRESQL_VERSION\."; then
+ echo "Installed PostgreSQL is not actually PostgreSQL $POSTGRESQL_VERSION!"
+ exit 1
+ fi
fi
echo "Production installation complete!"