]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not use hardcoded paths
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 18 Feb 2018 16:46:43 +0000 (16:46 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 18 Feb 2018 16:46:43 +0000 (16:46 +0000)
src/plugins/lua/elastic.lua

index ae789f0c5b76753398417777b2734ec29ea04530..c89a9afdc112d7c962b420f76a2400a12a59a602 100644 (file)
@@ -39,8 +39,8 @@ local enabled = true
 local settings = {
   limit = 10,
   index_pattern = 'rspamd-%Y.%m.%d',
-  template_file = '/etc/rspamd/rspamd_template.json',
-  kibana_file = '/etc/rspamd/kibana.json',
+  template_file = rspamd_paths['PLUGINSDIR'] .. '/elastic/rspamd_template.json',
+  kibana_file = rspamd_paths['PLUGINSDIR'] ..'/elastic/kibana.json',
   key_prefix = 'elastic-',
   expire = 3600,
   failover = false,