Skip to content

Commit 85a4c8e

Browse files
committed
Fixed #6654 Rspamd R_DUMMY Symbol is missing on some systems
1 parent fe8137b commit 85a4c8e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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() {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
rspamd_config.R_DUMMY = {
2+
callback = function(task)
3+
return true
4+
end,
5+
score = 0,
6+
description = 'dummy symbol',
7+
}

0 commit comments

Comments
 (0)