mirror of https://github.com/zulip/zulip.git
scripts: Refactor deployment-finished logging.
This commit is contained in:
parent
91b1521578
commit
51f069aa18
|
@ -80,7 +80,6 @@ try:
|
|||
subprocess.check_call(["sudo", os.path.join(deploy_path, "scripts", "lib", "upgrade-zulip-stage-2"),
|
||||
deploy_path, "--from-git"] + deploy_options)
|
||||
|
||||
logging.info("Deployment complete")
|
||||
subprocess.check_call(["./scripts/purge-old-deployments"])
|
||||
finally:
|
||||
release_deployment_lock()
|
||||
|
|
|
@ -51,7 +51,5 @@ try:
|
|||
deploy_path = deploy_path.strip()
|
||||
os.chdir(deploy_path)
|
||||
subprocess.check_call([os.path.abspath("./scripts/lib/upgrade-zulip-stage-2"), deploy_path])
|
||||
|
||||
logging.info("Deployment complete")
|
||||
finally:
|
||||
release_deployment_lock()
|
||||
|
|
|
@ -77,3 +77,5 @@ subprocess.check_output(["./scripts/restart-server"], preexec_fn=su_to_zulip)
|
|||
|
||||
if os.path.exists("/etc/supervisor/conf.d/zulip_db.conf"):
|
||||
subprocess.check_call(["supervisorctl", "start", "process-fts-updates"], preexec_fn=su_to_zulip)
|
||||
|
||||
logging.info("Upgrade complete!")
|
||||
|
|
Loading…
Reference in New Issue