update file perm
parent
a3c9fc2545
commit
7a929b736c
|
@ -80,9 +80,9 @@ func Install() string {
|
||||||
|
|
||||||
fmt.Println("Unable to find Hugo on " + caddy)
|
fmt.Println("Unable to find Hugo on " + caddy)
|
||||||
|
|
||||||
err = os.MkdirAll(caddy, 0666)
|
err = os.MkdirAll(caddy, 0774)
|
||||||
err = os.Mkdir(bin, 0666)
|
err = os.Mkdir(bin, 0774)
|
||||||
err = os.Mkdir(temp, 0666)
|
err = os.Mkdir(temp, 0774)
|
||||||
|
|
||||||
if !os.IsExist(err) {
|
if !os.IsExist(err) {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
|
@ -94,6 +94,7 @@ func Install() string {
|
||||||
// Create the file
|
// Create the file
|
||||||
tempfiles = append(tempfiles, tempfile)
|
tempfiles = append(tempfiles, tempfile)
|
||||||
out, err := os.Create(tempfile)
|
out, err := os.Create(tempfile)
|
||||||
|
out.Chmod(0774)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
clean()
|
clean()
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
|
|
Loading…
Reference in New Issue