* Fixed last commit
[project/luci.git] / libs / web / luasrc / template.lua
index ce54d17..a24c7ed 100644 (file)
@@ -159,6 +159,7 @@ function Template.__init__(self, name)
                
                if not luci.fs.mtime(compiledir) then
                        luci.fs.mkdir(compiledir, true)
+                       luci.fs.chmod(luci.fs.dirname(compiledir), "a+rxw")
                end
                                
                -- Build if there is no compiled file or if compiled file is outdated