[Web] Remove XMPP site when disabling XMPP

This commit is contained in:
andryyy
2021-02-14 21:33:43 +01:00
parent 9c4cb21df6
commit 666d344322
2 changed files with 16 additions and 0 deletions

View File

@@ -235,6 +235,14 @@ EOF;
}
fwrite($acl_handle, '# Autogenerated by mailcow' . PHP_EOL);
fclose($acl_handle);
// Write empty Nginx site
$acl_handle = fopen('/etc/nginx/conf.d/ZZZ-ejabberd.conf', 'w');
if (!$acl_handle) {
throw new Exception($lang['danger']['file_open_error']);
}
fwrite($acl_handle, '# Autogenerated by mailcow' . PHP_EOL);
fclose($acl_handle);
}
if (md5_file('/ejabberd/ejabberd_acl.yml') != $ejabberd_acl_md5) {