From: Jo-Philipp Wich Date: Fri, 7 Feb 2020 10:46:53 +0000 (+0100) Subject: luci-app-statistics: fix config generation X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=faabe9831251e6c08f3870331ed01d16e3fc30d1;p=oweals%2Fluci.git luci-app-statistics: fix config generation Fixes: 556e14c74 ("luci-app-statistics: convert plugin definitions to JSON") Signed-off-by: Jo-Philipp Wich --- 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