mirror of https://github.com/zulip/zulip.git
b0283c42f9
A user who somehow got an empty `zulip` database, but without a `zerver_messages` table in it, would get stuck in the installer at: ``` ++ su postgres -c 'cd / && psql -v ON_ERROR_STOP=1 -Atc '\''SELECT COUNT(*) FROM zulip.zerver_message;'\'' zulip' ERROR: relation "zulip.zerver_message" does not exist LINE 1: SELECT COUNT(*) FROM zulip.zerver_message; ^ + records= ``` Treat a failure to select from `zerver_messages` as having 0 messages, and continue with the `DROP DATABASE IF EXISTS` / `CREATE DATABASE` that `create-db.sql` usually does. Fixes: #29110. |
||
---|---|---|
.. | ||
lib | ||
nagios | ||
setup | ||
README.md | ||
__init__.py | ||
get-django-setting | ||
log-search | ||
purge-old-deployments | ||
refresh-sharding-and-restart | ||
reload-clients | ||
restart-server | ||
start-server | ||
stop-server | ||
upgrade-zulip | ||
upgrade-zulip-from-git | ||
zulip-puppet-apply |
README.md
This directory contains scripts that:
-
Generally do not require access to Django or the database (those are "management commands"), and thus are suitable to run operationally.
-
Are useful for managing a production deployment of Zulip (many are also used in a Zulip development environment, though development-only scripts live in
tools/
).
For more details, see https://zulip.readthedocs.io/en/latest/overview/directory-structure.html.