Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ci: Reduce number of places that hardcode Ubuntu and PostgreSQL versions.
Alex Vandiver787c74d0b84d
diff --git a/tools/ci/production-install b/tools/ci/production-installindex 34d76c5fe34..09af9589558 100755--- a/tools/ci/production-install+++ b/tools/ci/production-install@@ -75,9 +75,9 @@ else"$ZULIP_PATH"/scripts/setup/install --self-signed-cert --hostname 127.0.0.1 --email [email protected] --postgresql-database-user zulipcustomuser --postgresql-database-name zulipcustomdbfi-if [ "$os_id $os_version_id" = 'ubuntu 20.04' ]; then- if [ "$(crudini --get /etc/zulip/zulip.conf postgresql version)" != "12" ]; then- echo "Installer did not install the PostgreSQL 12 that we asked for!"+if [ -n "${POSTGRESQL_VERSION:-}" ]; then+ if [ "$(crudini --get /etc/zulip/zulip.conf postgresql version)" != "$POSTGRESQL_VERSION" ]; then+ echo "Installer did not install the PostgreSQL $POSTGRESQL_VERSION that we asked for!"exit 1fifi