mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Corrected permissions for UUID file
This commit is contained in:
parent
b019501b8b
commit
518edd3cd4
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ func initTelemetry() {
|
|||
|
||||
newUUID := func() uuid.UUID {
|
||||
id := uuid.New()
|
||||
err := ioutil.WriteFile(uuidFilename, []byte(id.String()), 0644) // human-readable this way
|
||||
err := ioutil.WriteFile(uuidFilename, []byte(id.String()), 0600) // human-readable as a string
|
||||
if err != nil {
|
||||
log.Printf("[ERROR] Persisting instance UUID: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue