mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-21 02:30:31 +00:00
update file perm
This commit is contained in:
parent
a3c9fc2545
commit
7a929b736c
1 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue