From faabe9831251e6c08f3870331ed01d16e3fc30d1 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 7 Feb 2020 11:46:53 +0100 Subject: [PATCH] luci-app-statistics: fix config generation Fixes: 556e14c74 ("luci-app-statistics: convert plugin definitions to JSON") Signed-off-by: Jo-Philipp Wich --- applications/luci-app-statistics/root/usr/bin/stat-genconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1