zulip/scripts
Alex Vandiver 1fa4ef0271 upgrade-postgres: Catch failed pg_upgradecluster exit code.
Because the command is part of a pipe sequence, the exitcode defaults
to the last in the sequence, which is not the most important one here.

Set pipefail, which sets the exit status to the exit code of the last
program in the sequence to exit non-zero, or 0 if all succeeded.  This
prevents the upgrade from barreling onward and setting
`postgres.version` improperly if the database upgrade step failed.
2020-10-15 15:21:30 -07:00
..
lib shfmt: Reformat shell scripts with shfmt. 2020-10-15 15:16:00 -07:00
nagios tornado: Remove explicit tornado_processes setting; compute it. 2020-09-18 15:13:40 -07:00
setup upgrade-postgres: Catch failed pg_upgradecluster exit code. 2020-10-15 15:21:30 -07:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
get-django-setting setup_path_on_import: Replace with setup_path function. 2020-02-25 15:40:21 -08:00
purge-old-deployments python: Elide nargs for argparse flag arguments. 2020-09-03 16:17:14 -07:00
README.md cleanup: Delete trailing newlines. 2019-08-06 23:29:11 -07:00
refresh-sharding-and-restart puppet: Generate sharding in puppet, then refresh-sharding-and-restart. 2020-09-14 16:27:15 -07:00
restart-server tornado: Remove explicit tornado_processes setting; compute it. 2020-09-18 15:13:40 -07:00
upgrade-zulip Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
upgrade-zulip-from-git Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
zulip-puppet-apply python: Prefer --flag=option over --flag option. 2020-09-03 17:51:09 -07:00

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.