From 3665a0e289a4bc2f1e37c3f86a7807aacd786173 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 25 Nov 2013 15:20:03 -0500 Subject: [PATCH] Fix permissions issues with upgrade-zulip from /root path. (imported from commit b7fce92ac1b7317388debaae2bc3270fe3ae155e) --- scripts/lib/upgrade-zulip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/upgrade-zulip b/scripts/lib/upgrade-zulip index 03f5e12cb0..4b6ae26122 100755 --- a/scripts/lib/upgrade-zulip +++ b/scripts/lib/upgrade-zulip @@ -44,8 +44,8 @@ if not got_lock: sys.exit(1) logging.info("Unpacking the tarball") -deploy_path = subprocess.check_output([os.path.join(os.path.dirname(__file__), - 'unpack-zulip'), +deploy_path = subprocess.check_output([os.path.realpath(os.path.join(os.path.dirname(__file__), + 'unpack-zulip')), tarball_path], preexec_fn=su_to_zulip) deploy_path = deploy_path.strip() os.chdir(deploy_path)