Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
restore-backup: Handle PORT being an int, not a str.
Alex Vandiverc9fccaa97548
diff --git a/scripts/setup/restore-backup b/scripts/setup/restore-backupindex 6671dce8862..8634f9e4d8b 100755--- a/scripts/setup/restore-backup+++ b/scripts/setup/restore-backup@@ -101,7 +101,7 @@ def restore_backup(tarball_file: IO[bytes], keep_settings: bool, keep_zulipconf:if db["HOST"] not in ["", "localhost"]:postgresql_env["PGHOST"] = db["HOST"]if "PORT" in db:- postgresql_env["PGPORT"] = db["PORT"]+ postgresql_env["PGPORT"] = str(db["PORT"])postgresql_env["PGUSER"] = db["USER"]if "PASSWORD" in db:postgresql_env["PGPASSWORD"] = db["PASSWORD"]