Skip to content

Commit

Permalink
Set perms of prometheus textfile to 0644.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopaganini committed Feb 5, 2024
1 parent c67d957 commit 346e49e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prom.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ func writeNodeTextFile(filename string, name string) error {
}
defer os.Remove(temp.Name())
defer temp.Close()
if err := os.Chmod(temp.Name(), 0644); err != nil {
return err
}

_, err = temp.Write(output)
if err != nil {
Expand Down

0 comments on commit 346e49e

Please sign in to comment.