From c101bf663df60116e472fd7dce00cb1eccba5929 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 10 Jan 2016 11:14:09 -0800 Subject: [PATCH] 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. --- scripts/lib/upgrade-zulip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/upgrade-zulip b/scripts/lib/upgrade-zulip index 6fdd32c5fe..c9f673aa55 100755 --- a/scripts/lib/upgrade-zulip +++ b/scripts/lib/upgrade-zulip @@ -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: