diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-02-07 11:46:53 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-02-07 11:46:53 +0100 |
commit | faabe9831251e6c08f3870331ed01d16e3fc30d1 (patch) | |
tree | 75431a807db25a12c4f5da3064815374c96e504a /applications/luci-app-statistics/root/usr | |
parent | 80f133b6a3b742a19a512d6d8db7d8c05a3a935d (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/luci-app-statistics/root/usr')
-rwxr-xr-x | applications/luci-app-statistics/root/usr/bin/stat-genconfig | 2 |
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 b5a880e134..4a7487ccf7 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 |