typos: Fix typos caught by mwic.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-05-20 13:16:21 -07:00
committed by Anders Kaseorg
parent 38cae070ed
commit b545abe1e2
30 changed files with 34 additions and 34 deletions

View File

@@ -68,7 +68,7 @@ parser.add_argument(
dest="host",
default="127.0.0.1",
help="Destination server address for uploading email from email mirror. "
"Address must contain a HTTP protocol. Otherwise, default value is assumed "
"Address must contain an HTTP protocol. Otherwise, default value is assumed "
"based on the http_only setting.",
)

View File

@@ -57,7 +57,7 @@ try:
[unpack_zulip, archived_tarball_path], preexec_fn=su_to_zulip, text=True
)
# Chdir to deploy_path and then run upgrade-zulip-stage-2 from the
# chdir to deploy_path and then run upgrade-zulip-stage-2 from the
# new version of Zulip (having the upgrade logic run from the new
# version is much better for fixing bugs in the upgrade process).
deploy_path = deploy_path.strip()

View File

@@ -88,7 +88,7 @@ def restore_backup(tarball_file: IO[bytes], keep_settings: bool, keep_zulipconf:
tarball_file.seek(0, 0)
run(["tar", "-C", tmp, *transform_args, "-xPz"], stdin=tarball_file)
# Now, extract the the database backup, destroy the old
# Now, extract the database backup, destroy the old
# database, and create a new, empty database.
db = settings.DATABASES["default"]
assert isinstance(db["NAME"], str)
@@ -153,7 +153,7 @@ def restore_backup(tarball_file: IO[bytes], keep_settings: bool, keep_zulipconf:
# file.
run([os.path.join(settings.DEPLOY_ROOT, "scripts", "zulip-puppet-apply"), "-f"])
# Now, restore the the database backup using pg_restore. This
# Now, restore the database backup using pg_restore. This
# needs to run after zulip-puppet-apply to ensure full-text
# search extensions are available and installed.
os.setresuid(POSTGRES_PWENT.pw_uid, POSTGRES_PWENT.pw_uid, 0)