]> source.dussan.org Git - rspamd.git/commitdiff
Load legacy `lua/rspamd.local.lua`
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Sep 2015 15:36:31 +0000 (16:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 22 Sep 2015 15:36:31 +0000 (16:36 +0100)
rules/rspamd.lua

index a9a38a997f2d6ad2c6bbcd2a6f20f1d50a87cf05..75dd2b3d9320c9f3288a38a13921caafacc04d3b 100644 (file)
@@ -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