zulip/scripts/lib
Lalit 112df91fbd provision: Do not require that no other yarn precedes us in $PATH.
`check_version` in `install-yarn` had the rather careful check that
the yarn it installed into `/usr/bin/yarn` was the yarn which was
first in the user's `$PATH`.  This caused problems when the user had a
pre-existing `/usr/local/bin/yarn`; however, those problems are
limited to the `install-yarn` script itself, since the nearly all
calls to yarn from Zulip's code already hardcode the `/srv/zulip-yarn`
location, and do not depend on what is in `$PATH`.

Remove the checks in `install-yarn` that depend on the local `$PATH`,
and stop installing our `yarn` into it.  We also adjust the two
callsites which did not specify the full path to `yarn`, so use
`/srv/zulip-yarn`.

Fixes: #23993

Co-authored-by: Alex Vandiver <alexmv@zulip.com>
2023-01-19 17:51:52 -05:00
..
__init__.py
build-pgroonga scripts: Pass --retry 3 to curl. 2022-11-08 08:07:36 -08:00
check-database-compatibility.py ruff: Fix N811 constant imported as non-constant. 2022-11-16 09:29:11 -08:00
check_rabbitmq_queue.py python: Use ‘not in’ for negated membership tests 2022-09-17 11:48:33 -07:00
clean_emoji_cache.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
clean_node_cache.py python: Reformat with Black, except quotes. 2021-02-12 13:11:19 -08:00
clean_unused_caches.py clean_unused_caches: Allow the main function to accept `Namespace` args. 2021-06-12 07:28:16 -07:00
clean_venv_cache.py requirements: Remove Thumbor. 2021-05-06 20:07:32 -07:00
clean_yarn_cache.py zulip_tools: Rename may_be_perform_purging to maybe_perform_purging. 2022-01-12 13:21:35 -08:00
create-production-venv python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
email-mirror-postfix ruff: Fix RUF004 exit() is only available in the interpreter. 2022-12-04 22:11:24 -08:00
fix-standalone-certbot puppet: Fix standalone certbot configurations. 2022-01-24 12:13:44 -08:00
hash_reqs.py python: Convert last type comments to annotations. 2022-03-24 20:32:39 -07:00
install install: Remove PostgreSQL 10 support. 2022-10-06 15:59:07 -07:00
install-node install-node: Upgrade Node.js from 18.10.0 to 18.12.1. 2022-12-07 09:55:05 -08:00
install-yarn provision: Do not require that no other yarn precedes us in $PATH. 2023-01-19 17:51:52 -05:00
node_cache.py node_cache: Remove node_modules/.cache when copying. 2022-05-04 09:56:07 -07:00
puppet_cache.py python: Replace universal_newlines with text. 2022-01-23 22:16:01 -08:00
pythonrc.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
queue_workers.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
setup-apt-repo setup-apt-repo: Make hashes file not contain full path. 2022-03-12 17:24:19 -08:00
setup-yum-repo provision: Add support for Fedora 34. 2021-07-20 12:10:41 -07:00
setup_path.py ruff: Enable new lints DTZ, ISC, PIE, PLW, Q, S, SIM. 2023-01-04 16:25:07 -08:00
setup_venv.py python: Convert last type comments to annotations. 2022-03-24 20:32:39 -07:00
sharding.py tornado: Support sharding by user ID. 2022-11-15 17:27:01 -08:00
supervisor.py supervisor: 'foo:*' also matches 'foo'. 2022-03-31 10:41:41 -07:00
unpack-zulip python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
upgrade-zulip python: Replace universal_newlines with text. 2022-01-23 22:16:01 -08:00
upgrade-zulip-from-git upgrade-zulip-from-git: init, then add remote. 2022-06-09 11:18:42 -07:00
upgrade-zulip-stage-2 restart-server: Default to running config and database checks. 2022-10-14 13:10:46 -07:00
warn-rabbitmq-nodename-change puppet: Always set the RabbitMQ nodename to zulip@localhost. 2022-01-25 01:48:02 +00:00
zulip_tools.py ruff: Enable new lints DTZ, ISC, PIE, PLW, Q, S, SIM. 2023-01-04 16:25:07 -08:00