summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_cfg_file.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-19 16:17:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-19 16:17:13 +0000
commit4abb85d399ff5d9ae83dc76a9cfdb416ec13137a (patch)
treeba4f28252e9bd539bc0e963f44235276c170fb8b /src/lua/lua_cfg_file.c
parentc87580806c6e941fe34be0751f928325271ee7eb (diff)
downloadrspamd-4abb85d399ff5d9ae83dc76a9cfdb416ec13137a.tar.gz
rspamd-4abb85d399ff5d9ae83dc76a9cfdb416ec13137a.zip
Rework build and install paths.
Diffstat (limited to 'src/lua/lua_cfg_file.c')
-rw-r--r--src/lua/lua_cfg_file.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lua/lua_cfg_file.c b/src/lua/lua_cfg_file.c
index 47fbd14bb..6fe773987 100644
--- a/src/lua/lua_cfg_file.c
+++ b/src/lua/lua_cfg_file.c
@@ -250,9 +250,12 @@ lua_check_condition (struct config_file *cfg, const gchar *condition)
/* Rspamd paths */
lua_newtable (L);
- lua_set_table_index (L, "etcdir", ETC_PREFIX);
- lua_set_table_index (L, "prefix", CMAKE_PREFIX);
- lua_set_table_index (L, "localstatesdir", LOCALSTATES_PREFIX);
+ lua_set_table_index (L, "confdir", RSPAMD_CONFDIR);
+ lua_set_table_index (L, "rundir", RSPAMD_RUNDIR);
+ lua_set_table_index (L, "dbdir", RSPAMD_DBDIR);
+ lua_set_table_index (L, "logdir", RSPAMD_LOGDIR);
+ lua_set_table_index (L, "pluginsdir", RSPAMD_PLUGINSDIR);
+ lua_set_table_index (L, "prefix", RSPAMD_PREFIX);
lua_setglobal (L, "rspamd_paths");
/* Make fake string */