Skip to content

Commit 66357f0

Browse files
author
Marius Burkard
committed
- still problem with domain selector on update of ISPC
1 parent 0f15aff commit 66357f0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ public function configure_rspamd() {
14761476
if ( substr($mail_config['dkim_path'], strlen($mail_config['dkim_path'])-1) == '/' ) {
14771477
$mail_config['dkim_path'] = substr($mail_config['dkim_path'], 0, strlen($mail_config['dkim_path'])-1);
14781478
}
1479-
$dkim_domains = $this->db->queryAllRecords('SELECT `dkim_selector`, `domain` FROM `mail_domain` WHERE `dkim` = ? ORDER BY `domain` ASC', 'y');
1479+
$dkim_domains = $this->db->queryAllRecords('SELECT `dkim_selector`, `domain` FROM ?? WHERE `dkim` = ? ORDER BY `domain` ASC', $conf['mysql']['database'] . '.mail_domain', 'y');
14801480
$fpp = fopen('/etc/rspamd/local.d/dkim_domains.map', 'w');
14811481
$fps = fopen('/etc/rspamd/local.d/dkim_selectors.map', 'w');
14821482
foreach($dkim_domains as $dkim_domain) {

install/update.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@
253253

254254
//* initialize the database
255255
$inst->db = new db();
256-
$inst->db->setDBName($conf['mysql']['database']);
257256

258257
//* initialize the master DB, if we have a multiserver setup
259258
if($conf['mysql']['master_slave_setup'] == 'y') {

0 commit comments

Comments
 (0)