Skip to content

Commit

Permalink
change permissions of the archive file (gwpy#387)
Browse files Browse the repository at this point in the history
Co-authored-by: Iara Ota <[email protected]>
  • Loading branch information
iaraota and Iara Ota authored Jan 16, 2024
1 parent 286cd45 commit b007282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gwsumm/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def write_data_archive(outfile, channels=True, timeseries=True,

# moves the new file to the backup directory
shutil.move(temp_outfile, outfile)
# Changes permission to allow reading from any user
os.chmod(outfile, 0o664)

except Exception:
# if it fails for any reason, raise and continue
Expand Down

0 comments on commit b007282

Please sign in to comment.