From 7a929b736c09e44b6905dcd74422db79fea74ca9 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 22 Feb 2016 21:21:01 +0000 Subject: [PATCH] update file perm --- insthugo/insthugo.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/insthugo/insthugo.go b/insthugo/insthugo.go index a91aca14..7640f3a9 100644 --- a/insthugo/insthugo.go +++ b/insthugo/insthugo.go @@ -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)