File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -2098,6 +2098,18 @@ public function configure_rspamd() {
20982098 $ tpl ->setVar ('rspamd_password ' , $ rspamd_password );
20992099 wf ('/etc/rspamd/local.d/worker-controller.inc ' , $ tpl ->grab ());
21002100 chmod ('/etc/rspamd/local.d/worker-controller.inc ' , 0644 );
2101+
2102+ // rspamd.local.lua
2103+ if (file_exists ($ conf ['ispconfig_install_dir ' ]."/server/conf-custom/install/rspamd.local.lua.master " )) {
2104+ exec ('cp ' .$ conf ['ispconfig_install_dir ' ]."/server/conf-custom/install/rspamd.local.lua.master /etc/rspamd/rspamd.local.lua " );
2105+ } else {
2106+ exec ("cp tpl/rspamd.local.lua.master /etc/rspamd/rspamd.local.lua " );
2107+ }
2108+ if (file_exists ('/etc/rspamd/rspamd.local.lua ' )) {
2109+ exec ('chgrp _rspamd /etc/rspamd/rspamd.local.lua ' );
2110+ exec ('chmod 640 /etc/rspamd/rspamd.local.lua ' );
2111+ }
2112+
21012113 }
21022114
21032115 public function configure_spamassassin () {
Original file line number Diff line number Diff line change 1+ rspamd_config.R_DUMMY = {
2+ callback = function(task)
3+ return true
4+ end,
5+ score = 0,
6+ description = 'dummy symbol',
7+ }
You can’t perform that action at this time.
0 commit comments