save files with better rights
This commit is contained in:
parent
23201f3b15
commit
95c13a3f5a
2
save.go
2
save.go
|
@ -16,7 +16,7 @@ func saveContent(kind, filename, content string) {
|
||||||
return
|
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")
|
log.WithError(err).Error("Unable to write content")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user