mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -34,17 +34,16 @@ subprocess.check_call(["tar", "-xf", tarball_path, "-C", extract_path])
|
||||
new_version = get_deployment_version(extract_path)
|
||||
current_version = version.ZULIP_VERSION
|
||||
if is_invalid_upgrade(current_version, new_version):
|
||||
print(FAIL +
|
||||
"Your current version is very old. Please first upgrade to version "
|
||||
"1.4.3 and then upgrade to {}.".format(new_version) +
|
||||
ENDC)
|
||||
print(
|
||||
FAIL + "Your current version is very old. Please first upgrade to version "
|
||||
"1.4.3 and then upgrade to {}.".format(new_version) + ENDC
|
||||
)
|
||||
shutil.rmtree(extract_path)
|
||||
sys.exit(1)
|
||||
|
||||
shutil.move(glob.glob(os.path.join(extract_path, "zulip-server-*"))[0], deploy_path)
|
||||
os.rmdir(extract_path)
|
||||
overwrite_symlink("/etc/zulip/settings.py",
|
||||
os.path.join(deploy_path, "zproject/prod_settings.py"))
|
||||
overwrite_symlink("/etc/zulip/settings.py", os.path.join(deploy_path, "zproject/prod_settings.py"))
|
||||
overwrite_symlink(deploy_path, os.path.join(DEPLOYMENTS_DIR, "next"))
|
||||
|
||||
print(deploy_path)
|
||||
|
||||
Reference in New Issue
Block a user