Fix permissions issues with upgrade-zulip from /root path.

(imported from commit b7fce92ac1b7317388debaae2bc3270fe3ae155e)
This commit is contained in:
Tim Abbott 2013-11-25 15:20:03 -05:00
parent f59fb53662
commit 3665a0e289
1 changed files with 2 additions and 2 deletions

View File

@ -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)