summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-07 11:46:53 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-07 11:46:53 +0100
commitfaabe9831251e6c08f3870331ed01d16e3fc30d1 (patch)
tree75431a807db25a12c4f5da3064815374c96e504a /applications
parent80f133b6a3b742a19a512d6d8db7d8c05a3a935d (diff)
luci-app-statistics: fix config generation
Fixes: 556e14c74 ("luci-app-statistics: convert plugin definitions to JSON") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications')
-rwxr-xr-xapplications/luci-app-statistics/root/usr/bin/stat-genconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/root/usr/bin/stat-genconfig b/applications/luci-app-statistics/root/usr/bin/stat-genconfig
index b5a880e13..4a7487ccf 100755
--- 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