mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-01 00:23:48 +03: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 {
|
newUUID := func() uuid.UUID {
|
||||||
id := uuid.New()
|
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 {
|
if err != nil {
|
||||||
log.Printf("[ERROR] Persisting instance UUID: %v", err)
|
log.Printf("[ERROR] Persisting instance UUID: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue