zulip/scripts/lib
Tim Abbott 382261dc72 upgrade-zulip: Remove tsearch-extras on upgrade.
We stopped using tsearch-extras in Zulip 2.1.0 after Anders figured
out how to achieve its goals with native postgres.  However, we never
did a `DROP EXTENSION` on systems thta had upgraded, which meant that
backups created on systems originally installed with Zulip 2.0.x and
older, and later upgraded to Zulip 2.1.x, could not be restored on
Zulip servers created with a fresh install of Zulip 2.1.x.

We can't do this with a normal database migration, because DROP
EXTENSION has to be done as the postgres user, so we add some custom
migration code in the upgrade-zulip-stage-2 tool.

It's safe to run this whenever tsearch_extras.control is installed because:
* Zulip is AFAIK the only software that ever used tsearch_extras.
* The package was only installed via puppet on production servers configured to
  run a local Zulip database.
* We'll only run this code once per system, because it removes the
  package and thus the control files.

Fixes #13612.
2020-04-15 15:18:44 -07:00
..
third install-yarn: Fix buggy status check for the signature. 2018-04-09 15:09:37 -07:00
__init__.py Factor out venv-creating code from provision.py. 2016-06-21 11:25:41 -07:00
build-pgroonga provision: Added provision support for Ubuntu 20.04(Focal). 2020-03-17 14:57:14 -07:00
certbot-maybe-renew Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
check_rabbitmq_queue.py nagios: Fix use of wrong variable in check_rabbitmq_queue. 2020-04-10 13:48:16 -07:00
check-upstart ci: Move backend and production tests to Ubuntu 16.04 (xenial). 2019-05-24 17:07:15 -07:00
clean_emoji_cache.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
clean_node_cache.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
clean_venv_cache.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
clean-unused-caches scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
create-production-venv setup_venv: Used get_venv_dependencies() to return correct VENV dependencies. 2020-03-23 10:28:21 -07:00
create-thumbor-venv setup_venv: Replace virtualenv_args list with python2 bool. 2020-02-05 12:38:10 -08:00
email-mirror-postfix email_mirror: Rewrite docstrings to focus on current reality. 2020-01-30 12:39:45 -08:00
hash_reqs.py typing: Remove now-unnecessary conditional import. 2019-07-29 15:18:22 -07:00
install install: Reduce the RAM limit to accommodate some definition of "2GB". 2020-01-24 12:35:37 -08:00
install-node install-node: Upgrade to Node.js 12.16.1, Yarn 1.22.4, nvm 0.35.3. 2020-03-26 21:34:47 -07:00
node_cache.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
pythonrc.py pythonrc: Clean up type ignores. 2019-08-09 16:39:16 -07:00
queue_workers.py setup_path_on_import: Replace with setup_path function. 2020-02-25 15:40:21 -08:00
setup_path.py setup_path: Fix KeyError in setup_path for virtualenv ≥ 20. 2020-03-23 04:06:19 -07:00
setup_venv.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00
setup-apt-repo provision: switch Focal to use PGroonga from PPA. 2020-03-31 15:02:31 -07:00
setup-apt-repo-debathena Use #!/usr/bin/env for bash shebangs. 2018-12-17 17:21:08 -08:00
setup-yum-repo setup-yum-repo: Add prod flag for doing IUS install on CentOS. 2019-01-05 15:49:02 -08:00
unpack-zulip scripts/lib/unpack-zulip: Avoid shelling out for rm, mv, mkdir, ln. 2018-11-28 17:48:23 -08:00
upgrade-zulip scripts: Remove unused imports. 2019-02-02 17:02:58 -08:00
upgrade-zulip-from-git upgrade-zulip-from-git: Fetch tags to make version info more useful. 2019-06-23 23:10:47 -07:00
upgrade-zulip-stage-2 upgrade-zulip: Remove tsearch-extras on upgrade. 2020-04-15 15:18:44 -07:00
zulip_tools.py python: Modernize legacy Python 2 syntax with pyupgrade. 2020-04-09 16:43:22 -07:00