diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-04 12:42:14 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-04 12:42:14 +0000 |
commit | 3cf2f3130034e46ff0224cc576626599422e8401 (patch) | |
tree | 11c85e27beda01882a63b6ff3920610816d5ab4b /src/rspamadm/stat_convert.c | |
parent | 4d589bd8919effafcdb79005a3c2a5eb461480f3 (diff) | |
download | rspamd-3cf2f3130034e46ff0224cc576626599422e8401.tar.gz rspamd-3cf2f3130034e46ff0224cc576626599422e8401.zip |
[Rework] Stop embedding rspamadm scripts into C
Diffstat (limited to 'src/rspamadm/stat_convert.c')
-rw-r--r-- | src/rspamadm/stat_convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamadm/stat_convert.c b/src/rspamadm/stat_convert.c index 48acbc9bd..98eb33700 100644 --- a/src/rspamadm/stat_convert.c +++ b/src/rspamadm/stat_convert.c @@ -16,7 +16,6 @@ #include "config.h" #include "rspamadm.h" #include "lua/lua_common.h" -#include "stat_convert.lua.h" static gchar *source_db = NULL; static gchar *redis_host = NULL; @@ -117,6 +116,7 @@ rspamadm_statconvert (gint argc, gchar **argv) } L = rspamd_lua_init (); + rspamd_lua_set_path (L, NULL, NULL); obj = ucl_object_typed_new (UCL_OBJECT); ucl_object_insert_key (obj, ucl_object_fromstring (source_db), @@ -147,7 +147,7 @@ rspamadm_statconvert (gint argc, gchar **argv) argc, argv, obj, - rspamadm_script_stat_convert); + "stat_convert"); lua_close (L); ucl_object_unref (obj); |