Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
upgrade: Remove handling of "googleblob" emoji rename.
Alex Vandiver342d278c8a43
diff --git a/scripts/lib/upgrade-zulip-stage-3 b/scripts/lib/upgrade-zulip-stage-3index 36be6584b5f..13d0d77c5b7 100755--- a/scripts/lib/upgrade-zulip-stage-3+++ b/scripts/lib/upgrade-zulip-stage-3@@ -5,10 +5,8 @@# always run from the new version of Zulip, so any bug fixes take# effect on the very next upgrade.import argparse-import hashlibimport loggingimport os-import shutilimport subprocessimport sysimport time@@ -181,20 +179,6 @@ subprocess.check_call([os.path.join(deploy_path, "scripts", "setup", "generate_secrets.py"), "--production"])-# Unpleasant migration: Remove any legacy deployed copies of-# images-google-64 from before we renamed that emojiset to-# "googleblob":-emoji_path = "/home/zulip/prod-static/generated/emoji/images-google-64/1f32d.png"-if os.path.exists(emoji_path):- with open(emoji_path, "rb") as f:- emoji_data = f.read()- emoji_sha = hashlib.sha1(emoji_data).hexdigest()- if emoji_sha == "47033121dc20b376e0f86f4916969872ad22a293":- if args.skip_restart:- logging.error("Would need to delete images-google-64 -- aborting!")- sys.exit(1)- shutil.rmtree("/home/zulip/prod-static/generated/emoji/images-google-64")-# And then, building/installing the static assets.if args.ignore_static_assets:# For the OS version upgrade use case, the static assets are