mirror of
https://github.com/zulip/zulip.git
synced 2026-06-12 21:00:58 +08:00
restore-backup: Handle PORT being an int, not a str.
This changed inf1ec8163ef. (cherry picked from commitc9fccaa975)
This commit is contained in:
parent
b2daa758b1
commit
e104f27533
@ -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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user