luci-app-statistics: fix config generation
authorJo-Philipp Wich <jo@mein.io>
Fri, 7 Feb 2020 10:46:53 +0000 (11:46 +0100)
committerJo-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

index b5a880e134850697036b22e1a9a7849967b43b0e..4a7487ccf768b192f2ab1143c96be43636a6cc4f 100755 (executable)
@@ -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