File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments