Fix permission issue for nginx when publishing into the website folder #15
@ -410,7 +410,7 @@ func Publish() {
|
||||
if cfg.Publishing {
|
||||
os.RemoveAll(PathUserWWW) // remove all post and start over
|
||||
if _, err := os.Stat(PathUserWWW); os.IsNotExist(err) {
|
||||
os.MkdirAll(PathUserWWW, 0700)
|
||||
os.MkdirAll(PathUserWWW, 0755)
|
||||
os.Symlink(path.Join(PathUserConfig, "style.css"), path.Join(PathUserWWW, "style.css"))
|
||||
os.Symlink(PathUserWWW, path.Join(PathUserHTML, cfg.PublishDir))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user