summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc/template.lua')
-rw-r--r--libs/web/luasrc/template.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua
index ce54d17f3..a24c7ed58 100644
--- a/libs/web/luasrc/template.lua
+++ b/libs/web/luasrc/template.lua
@@ -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