Run upgrade-zulip-stage-2 from an absolute path.

This should make it more obvious in tracebacks that we are running the
script from the version of Zulip we're upgrading to, not the old
version.
This commit is contained in:
Tim Abbott 2016-01-10 11:14:09 -08:00
parent 52d0423591
commit c101bf663d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ try:
# version is much better for fixing bugs in the upgrade process).
deploy_path = deploy_path.strip()
os.chdir(deploy_path)
subprocess.check_call(["./scripts/lib/upgrade-zulip-stage-2", deploy_path])
subprocess.check_call([os.path.abspath("./scripts/lib/upgrade-zulip-stage-2"), deploy_path])
logging.info("Deployment complete")
finally: