Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Use default database_user value when looking up.
Alex Vandiver828c9d1c1887
diff --git a/zproject/computed_settings.py b/zproject/computed_settings.pyindex 475b186824e..b75086dccd5 100644--- a/zproject/computed_settings.py+++ b/zproject/computed_settings.py@@ -313,7 +313,7 @@ elif REMOTE_POSTGRES_HOST != "":DATABASES["default"]["OPTIONS"]["sslmode"] = REMOTE_POSTGRES_SSLMODEelse:DATABASES["default"]["OPTIONS"]["sslmode"] = "verify-full"-elif get_config("postgresql", "database_user") != "zulip":+elif get_config("postgresql", "database_user", "zulip") != "zulip":if get_secret("postgres_password") is not None:DATABASES["default"].update(PASSWORD=get_secret("postgres_password"),