From: Vsevolod Stakhov Date: Sun, 18 Feb 2018 16:46:43 +0000 (+0000) Subject: [Minor] Do not use hardcoded paths X-Git-Tag: 1.7.0~167 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8f419996786af380a3bc96ddc55d3a295991d7ef;p=rspamd.git [Minor] Do not use hardcoded paths --- diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index ae789f0c5..c89a9afdc 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -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,