forked from TrueCloudLab/lego
Merge pull request #230 from doherty/account-json-executable
Write account.json without executable bit set
This commit is contained in:
commit
a4dfe5a7e7
1 changed files with 5 additions and 2 deletions
|
@ -101,6 +101,9 @@ func (a *Account) Save() error {
|
|||
return err
|
||||
}
|
||||
|
||||
return ioutil.WriteFile(path.Join(a.conf.AccountPath(a.Email), "account.json"), jsonBytes, 0700)
|
||||
|
||||
return ioutil.WriteFile(
|
||||
path.Join(a.conf.AccountPath(a.Email), "account.json"),
|
||||
jsonBytes,
|
||||
0600,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue