aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-22 16:36:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-22 16:36:31 +0100
commitb887f717e82a5df630a03a433ecfcafb4714dc63 (patch)
tree4914a45ab540fe12510ef824bbe80551086345cd /rules
parentb96418cea8bf33dfda016e96c2d3183e60a0dfee (diff)
downloadrspamd-b887f717e82a5df630a03a433ecfcafb4714dc63.tar.gz
rspamd-b887f717e82a5df630a03a433ecfcafb4714dc63.zip
Load legacy `lua/rspamd.local.lua`
Diffstat (limited to 'rules')
-rw-r--r--rules/rspamd.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules/rspamd.lua b/rules/rspamd.lua
index a9a38a997..75dd2b3d9 100644
--- a/rules/rspamd.lua
+++ b/rules/rspamd.lua
@@ -53,6 +53,11 @@ end
if file_exists(local_conf .. '/rspamd.local.lua') then
dofile(local_conf .. '/rspamd.local.lua')
+else
+ -- Legacy lua/rspamd.local.lua
+ if file_exists(local_conf .. '/lua/rspamd.local.lua') then
+ dofile(local_conf .. '/lua/rspamd.local.lua')
+ end
end
if file_exists(local_rules .. '/rspamd.classifiers.lua') then