Skip to content

Commit

Permalink
{Storage} Grant right to azcopy install directory (Azure#16814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliehzl authored Feb 5, 2021
1 parent c86f987 commit fba659e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ def install_azcopy(self, install_location):
else:
raise CLIError('Azcopy ({}) does not exist.'.format(self.system))
try:
os.chmod(install_dir,
os.stat(install_dir).st_mode | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH)
_urlretrieve(file_url, install_location)
os.chmod(install_location,
os.stat(install_location).st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
_urlretrieve(file_url, install_location)
except IOError as err:
raise CLIError('Connection error while attempting to download azcopy {}. You could also install the '
'specified azcopy version to {} manually. ({})'.format(AZCOPY_VERSION, install_dir, err))
Expand Down

0 comments on commit fba659e

Please sign in to comment.