From 1c7054e7e56b386c8229421a601179c5691912d1 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Fri, 28 Jul 2017 23:05:24 -0700 Subject: [PATCH] upgrade: Reorder steps slightly for clarity. --- scripts/upgrade-zulip-from-git | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade-zulip-from-git b/scripts/upgrade-zulip-from-git index b94ce842cf..7ab4e89c60 100755 --- a/scripts/upgrade-zulip-from-git +++ b/scripts/upgrade-zulip-from-git @@ -57,13 +57,13 @@ try: subprocess.check_call(["git", "clone", "-q", "-b", refname, LOCAL_GIT_CACHE_DIR, deploy_path], stdout=open('/dev/null', 'w'), preexec_fn=su_to_zulip) - - subprocess.check_call(["ln", '-nsf', deploy_path, os.path.join(DEPLOYMENTS_DIR, "next")]) os.chdir(deploy_path) subprocess.check_call(["ln", "-nsf", "/etc/zulip/settings.py", os.path.join(deploy_path, "zproject/prod_settings.py")]) + subprocess.check_call(["ln", '-nsf', deploy_path, os.path.join(DEPLOYMENTS_DIR, "next")]) + subprocess.check_call(["sudo", os.path.join(deploy_path, "scripts", "lib", "upgrade-zulip-stage-2"), deploy_path, "--from-git"] + deploy_options) finally: