[Web] Remove XMPP site when disabling XMPP
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user