projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f133b
)
luci-app-statistics: fix config generation
author
Jo-Philipp Wich
<jo@mein.io>
Fri, 7 Feb 2020 10:46:53 +0000
(11:46 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Fri, 7 Feb 2020 10:46:53 +0000
(11:46 +0100)
Fixes:
556e14c74
("luci-app-statistics: convert plugin definitions to JSON")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-statistics/root/usr/bin/stat-genconfig
patch
|
blob
|
history
diff --git
a/applications/luci-app-statistics/root/usr/bin/stat-genconfig
b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index b5a880e134850697036b22e1a9a7849967b43b0e..4a7487ccf768b192f2ab1143c96be43636a6cc4f 100755
(executable)
--- a/
applications/luci-app-statistics/root/usr/bin/stat-genconfig
+++ b/
applications/luci-app-statistics/root/usr/bin/stat-genconfig
@@
-287,7
+287,7
@@
plugins = {
local plugin_dir = "/usr/share/luci/statistics/plugins/"
for filename in nixio.fs.dir(plugin_dir) do
- local name = filename:gsub("%.
lua
", "")
+ local name = filename:gsub("%.
json
", "")
if (name == "exec") then
plugins[name] = config_exec
elseif (name == "iptables") then