diff --git a/scripts/unpack-zulip b/scripts/unpack-zulip index ec99677310..02ec7d95e9 100755 --- a/scripts/unpack-zulip +++ b/scripts/unpack-zulip @@ -4,6 +4,7 @@ import sys import subprocess import datetime import tempfile +import glob sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from zulip_tools import DEPLOYMENTS_DIR, FAIL, ENDC, make_deploy_path @@ -18,7 +19,7 @@ deploy_path = make_deploy_path() extract_path = tempfile.mkdtemp() subprocess.check_call(["tar", "-xf", tarball_path, "-C", extract_path]) -subprocess.check_call(["mv", os.path.join(extract_path, "zulip-server"), deploy_path]) +subprocess.check_call(["mv", glob.glob(os.path.join(extract_path, "zulip-server-*"))[0], deploy_path]) subprocess.check_call(["rmdir", extract_path]) subprocess.check_call(["ln", "-nsf", "/etc/zulip/settings.py", os.path.join(deploy_path, "zproject/local_settings.py")])