Commit e346ae7a authored by Till Brehm's avatar Till Brehm

Fixed #4347 ISPConfig 3 / CentOS 7 / Mailman Bug location of virtual-mailman

parent 7617f793
......@@ -82,8 +82,12 @@ class mailman_plugin {
unset($out);
} while ($running);
unset($out);
if(is_file('/etc/mailman/virtual-mailman') && !is_link('/var/lib/mailman/data/virtual-mailman')) {
symlink('/etc/mailman/virtual-mailman','/var/lib/mailman/data/virtual-mailman');
}
if(is_file('/var/lib/mailman/data/virtual-mailman')) exec('postmap /var/lib/mailman/data/virtual-mailman');
if(is_file('/var/lib/mailman/data/transport-mailman')) exec('postmap /var/lib/mailman/data/transport-mailman');
exec('nohup '.$conf['init_scripts'] . '/' . 'mailman reload >/dev/null 2>&1 &');
$app->db->query("UPDATE mail_mailinglist SET password = '' WHERE mailinglist_id = ?", $data["new"]['mailinglist_id']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment