mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
run-hooks: Handle hooks after OS upgrade on fresh install.
This commit is contained in:
committed by
Tim Abbott
parent
012115a2bc
commit
fc962b8b0e
@@ -30,6 +30,10 @@ deploy_path = get_deploy_root()
|
|||||||
|
|
||||||
if args.kind == "post-deploy":
|
if args.kind == "post-deploy":
|
||||||
old_dir_name = "last"
|
old_dir_name = "last"
|
||||||
|
if not os.path.exists(DEPLOYMENTS_DIR + "/last"):
|
||||||
|
# Fresh installs which are doing an OS upgrade don't have a
|
||||||
|
# "last" yet
|
||||||
|
old_dir_name = "current"
|
||||||
else:
|
else:
|
||||||
old_dir_name = "current"
|
old_dir_name = "current"
|
||||||
old_version = parse_version_from(DEPLOYMENTS_DIR + "/" + old_dir_name)
|
old_version = parse_version_from(DEPLOYMENTS_DIR + "/" + old_dir_name)
|
||||||
|
Reference in New Issue
Block a user