mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
installer: Halt if wrong version of PostgreSQL is already installed.
49a7a66004 and immediately previous commits began installing
PostgreSQL 12 from their apt repository. On machines which already
have the distribution-provided version of PostgreSQL installed,
however, this leads to failure to apply puppet when restarting
PostgreSQL 12, as both attempt to claim the same port.
During installation, if we will be installing PostgreSQL, look for
other versions than what we will install, and abort if they are
found. This is safer than attempting to automatically uninstall or
reconfigure existing databases.
This commit is contained in:
committed by
Tim Abbott
parent
814198d649
commit
31f1f10501
@@ -62,9 +62,16 @@ $ sudo service puppet-agent stop
|
||||
$ sudo service puppet stop
|
||||
```
|
||||
|
||||
### Postgres
|
||||
### PostgreSQL
|
||||
|
||||
If you have an existing postgres database, note that Zulip will use
|
||||
Zulip expects to install PostgreSQL 12, and find that listening on
|
||||
port 5432; any other version of PostgreSQL that is detected at install
|
||||
time will cause the install to abort. If you already have PostgreSQL
|
||||
installed, you can pass `--postgres-version=` to the installer to have
|
||||
it use that version. It will replace the package with the latest from
|
||||
the PostgreSQL apt repository, but existing data will be retained.
|
||||
|
||||
If you have an existing PostgreSQL database, note that Zulip will use
|
||||
the default `main` as its database name; make sure you're not using
|
||||
that.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user