Fix permission issue for nginx when publishing into the website folder #15

Open
mroik wants to merge 1 commits from mroik/neofeels:trunk into trunk

View File

@ -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))
}