scripts: Purge old deployments on every upgrade.

Fixes: #554.
This commit is contained in:
Tim Abbott 2016-08-04 17:02:19 -07:00
parent 51f069aa18
commit 4d02c6efef
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,5 @@ try:
subprocess.check_call(["sudo", os.path.join(deploy_path, "scripts", "lib", "upgrade-zulip-stage-2"),
deploy_path, "--from-git"] + deploy_options)
subprocess.check_call(["./scripts/purge-old-deployments"])
finally:
release_deployment_lock()

View File

@ -79,3 +79,5 @@ 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!")
subprocess.check_call(["./scripts/purge-old-deployments"])