zulip/scripts/setup
Alex Vandiver 26696aaa53 upgrade-postgresql: Also upgrade postgresql-client.
The `pg_upgrade` tool uses `pg_dump` as an internal step, and verifies
that the version of `pg_upgrade` is the same exactly the same as the
version of the PostgreSQL server it is upgrading to.  A mismatch (even
in packaging versions) leads to it aborting:

```
/usr/lib/postgresql/14/bin/pg_upgrade -b /usr/lib/postgresql/13/bin -B /usr/lib/postgresql/14/bin -p 5432 -P 5435 -d /etc/postgresql/13/main -D /etc/postgresql/14/main --link
Finding the real data directory for the source cluster      ok
Finding the real data directory for the target cluster      ok

check for "/usr/lib/postgresql/14/bin/pg_dump" failed: incorrect version: found "pg_dump (PostgreSQL) 14.6 (Ubuntu 14.6-0ubuntu0.22.04.1)", expected "pg_dump (PostgreSQL) 14.6 (Ubuntu 14.6-1.pgdg22.04+1)"
Failure, exiting
```

Explicitly upgrade `postgresql-client` at the same time we upgrade
`postgresql` itself, so their versions match.

Fixes: #24192
2023-02-01 14:44:34 -08:00
..
apt-repos scripts: Pass --retry 3 to curl. 2022-11-08 08:07:36 -08:00
__init__.py setup: Add missing __init__.py. 2021-07-05 12:20:39 -07:00
compare-settings-to-template compare-settings-to-template: Handle prod_settings_template renaming. 2022-04-28 14:52:38 -07:00
configure-rabbitmq configure-rabbitmq: Remove use of sudo. 2022-04-19 12:36:31 -07:00
create-database create-database: Hide harmless "non-existant database" warnings. 2023-01-05 11:39:23 -08:00
create-db.sql create-db: Default dbuser and dbname to zulip. 2021-05-26 17:19:11 -07:00
create-pgroonga.sql postgres-create-db: Split into non-pgroonga and pgroonga scripts. 2019-07-17 16:18:22 -07:00
flush-memcached memcached: Switch from pylibmc to python-binary-memcached. 2020-08-06 12:51:14 -07:00
generate_secrets.py ruff: Fix SIM105 Use contextlib.suppress instead of try-except-pass. 2023-01-23 11:18:36 -08:00
generate-rabbitmq-cookie CVE-2021-43799: Set a secure Erlang cookie. 2022-01-25 02:13:53 +00:00
generate-self-signed-cert generate-self-signed-cert: Remove RANDFILE. 2022-02-25 14:49:07 -08:00
initialize-database scripts: Switch to stop-server/restart-server. 2022-03-21 16:33:28 -07:00
inline_email_css.py Fix typos caught by typos. 2023-01-03 11:09:50 -08:00
install install: Use a period at end of root error message. 2021-06-23 08:42:46 -07:00
reindex-textual-data scripts: Help mypy resolve the psycopg2.connect overload. 2022-08-30 17:36:21 -07:00
restore-backup restore-backup: Provide flags to leave settings.py and zulip.conf as-is. 2022-07-20 12:35:51 -07:00
setup-certbot install-shellcheck: Upgrade ShellCheck to 0.9.0. 2023-01-04 14:01:34 -08:00
sha256-tarball-to scripts: Pass --retry 3 to curl. 2022-11-08 08:07:36 -08:00
terminate-psql-sessions terminate-psql-sessions: Rely on the caller to set PGHOST, PGUSER. 2020-06-15 21:37:14 -07:00
upgrade-postgresql upgrade-postgresql: Also upgrade postgresql-client. 2023-02-01 14:44:34 -08:00