save files with better rights

pull/3/head
Martin Thielecke 2 years ago
parent 23201f3b15
commit 95c13a3f5a
Signed by: mthie
GPG Key ID: D1D25A85C8604DFB
  1. 2
      save.go

@ -16,7 +16,7 @@ func saveContent(kind, filename, content string) {
return
}
if err := ioutil.WriteFile(p, []byte(content), 0777); err != nil {
if err := ioutil.WriteFile(p, []byte(content), 0644); err != nil {
log.WithError(err).Error("Unable to write content")
}
}

Loading…
Cancel
Save