Change user www folder permission

This commit is contained in:
Mroik 2025-07-05 03:24:54 +02:00
parent 46439d2488
commit 8f7eebb035
No known key found for this signature in database
GPG Key ID: 48797EA19C19BED1

View File

@ -410,7 +410,7 @@ func Publish() {
if cfg.Publishing { if cfg.Publishing {
os.RemoveAll(PathUserWWW) // remove all post and start over os.RemoveAll(PathUserWWW) // remove all post and start over
if _, err := os.Stat(PathUserWWW); os.IsNotExist(err) { 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(path.Join(PathUserConfig, "style.css"), path.Join(PathUserWWW, "style.css"))
os.Symlink(PathUserWWW, path.Join(PathUserHTML, cfg.PublishDir)) os.Symlink(PathUserWWW, path.Join(PathUserHTML, cfg.PublishDir))
} }