From bd607a32e6860eab134a055729dad978a1a600d9 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 13 Nov 2013 22:51:46 -0500 Subject: [PATCH] unpack-zulip: Update for zulip-server paths containing versions. (imported from commit 9318cab0cfcdf57412afbe9386371c8f9994da9f) --- scripts/unpack-zulip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")])