update file perm

pull/57/head
Henrique Dias 2016-02-22 21:21:01 +00:00
parent a3c9fc2545
commit 7a929b736c
1 changed files with 4 additions and 3 deletions

View File

@ -80,9 +80,9 @@ func Install() string {
fmt.Println("Unable to find Hugo on " + caddy)
err = os.MkdirAll(caddy, 0666)
err = os.Mkdir(bin, 0666)
err = os.Mkdir(temp, 0666)
err = os.MkdirAll(caddy, 0774)
err = os.Mkdir(bin, 0774)
err = os.Mkdir(temp, 0774)
if !os.IsExist(err) {
fmt.Println(err)
@ -94,6 +94,7 @@ func Install() string {
// Create the file
tempfiles = append(tempfiles, tempfile)
out, err := os.Create(tempfile)
out.Chmod(0774)
if err != nil {
clean()
fmt.Println(err)