Skip to content

Commit 85f6fb3

Browse files
author
Till Brehm
committed
Create symlink for dovecot-sql.conf on Centos in /etc
1 parent 42f8223 commit 85f6fb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/dist/lib/fedora.lib.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ public function configure_dovecot()
438438
copy("$config_dir/$configfile", "$config_dir/$configfile~");
439439
exec("chmod 400 $config_dir/$configfile~");
440440
}
441+
442+
if(!@file_exists('/etc/dovecot-sql.conf')) exec('ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf');
441443

442444
$content = rfsel($conf['ispconfig_install_dir'].'/server/conf-custom/install/fedora_dovecot-sql.conf.master', "tpl/fedora_dovecot-sql.conf.master");
443445
$content = str_replace('{mysql_server_ispconfig_user}', $conf['mysql']['ispconfig_user'], $content);
@@ -450,7 +452,7 @@ public function configure_dovecot()
450452
exec("chown root:root $config_dir/$configfile");
451453

452454
// Dovecot shall ignore mounts in website directory
453-
exec("doveadm mount add '/var/www/*' ignore");
455+
if(is_installed('doveadm')) exec("doveadm mount add '/var/www/*' ignore > /dev/null 2> /dev/null");
454456

455457
}
456458

0 commit comments

Comments
 (0)