mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
The current `upgrade-zulip` and `upgrade-zulip-from-git` bash scripts exit with a zero status even if the upgrade commands exit with a non-zero status. Hence add `set -e` command which exits the script with the same status as the non-zero command. For pipe commands however, the net status of a command is the status of the last command, hence if the other parts fail, the net status is only determined by the last command. This is the case with our main /lib/upgrade-zulip* command in the scripts whose status is determined by the `tee` command instead. Hence add a small condition to get the status of the actual upgrade command and exit the script if it fails with a non-zero command. We also check whether the script is being run as root, matching the install script logic.
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.