upgrade: Reorder steps slightly for clarity.

This commit is contained in:
Greg Price 2017-07-28 23:05:24 -07:00 committed by Tim Abbott
parent 5002d9ecb9
commit 1c7054e7e5
1 changed files with 2 additions and 2 deletions

View File

@ -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: