Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(cmd): create unit files as readable to all users
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Sep 19, 2014
1 parent 21a5b97 commit 05f027c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ Options:
}
dir, _ := client.ExpandUser(args["--path"].(string))
// create the target dir if necessary
if err := os.MkdirAll(dir, 0700); err != nil {
if err := os.MkdirAll(dir, 0755); err != nil {
return err
}
// download and save the unit files to the specified path
Expand Down Expand Up @@ -312,7 +312,7 @@ Options:
if err != nil {
return err
}
if err = ioutil.WriteFile(dest, data, 0600); err != nil {
if err = ioutil.WriteFile(dest, data, 0644); err != nil {
return err
}
fmt.Printf("Refreshed %s from %s\n", unit, branch)
Expand Down

0 comments on commit 05f027c

Please sign in to comment.