Skip to content

Commit

Permalink
fix: create temp dir perm with 777 (close #1813)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 26, 2022
1 parent f0181d9 commit f86ad1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/bootstrap/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func InitConfig() {
if err != nil {
log.Fatalf("marshal config error: %+v", err)
}
err = ioutil.WriteFile(flags.Config, confBody, 0777)
err = os.WriteFile(flags.Config, confBody, 0777)
if err != nil {
log.Fatalf("update config struct error: %+v", err)
}
Expand All @@ -59,7 +59,7 @@ func InitConfig() {
if err != nil {
log.Errorln("failed delete temp file:", err)
}
err = os.MkdirAll(conf.Conf.TempDir, 0700)
err = os.MkdirAll(conf.Conf.TempDir, 0777)
if err != nil {
log.Fatalf("create temp dir error: %+v", err)
}
Expand Down

0 comments on commit f86ad1d

Please sign in to comment.