Skip to content

Commit

Permalink
Do not fail storage mounts if chmod fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sidoruka committed Dec 11, 2024
1 parent ee1b5f7 commit b32932e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflows/pipe-common/scripts/mount_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ def build_mount_command(self, params):
command += ' -o {}'.format(mount_options)
command += ' {path} {mount}'.format(**params)
if PermissionHelper.is_storage_writable(self.storage) and not self.storage.sensitive:
command += ' && chmod {permission} {mount}'.format(permission=permission, **params)
command += ' && ( chmod {permission} {mount} || true )'.format(permission=permission, **params)
return command

def append_timeout_options(self, mount_options):
Expand Down

0 comments on commit b32932e

Please sign in to comment.