Fixed: When onboarding a tenant with resources all globaldnsrecords are
interpreted and created, even when service offering is not subscribed or not used yet. Service globaldnsrecords are ignored when onboarding a tenant. Virtual Server and Server globaldnsrecords are applied when onboarding a user Service globaldns records are now applied when service is applied/activated DNS record definitions removed for those services where no globaldnsrecords are user TaskManager unhandled exception handled
This commit is contained in:
parent
2907c27592
commit
75ca39ea5f
13 changed files with 458 additions and 109 deletions
|
@ -1202,7 +1202,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return pointers;
|
||||
}
|
||||
|
||||
public static int AddMailDomainPointer(int itemId, int domainId)
|
||||
public static int AddMailDomainPointer( int itemId, int domainId)
|
||||
{
|
||||
// check account
|
||||
int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo);
|
||||
|
@ -1231,6 +1231,16 @@ namespace WebsitePanel.EnterpriseServer
|
|||
ServiceProviderProxy.Init(mail, mailDomain.ServiceId);
|
||||
mail.AddDomainAlias(mailDomain.Name, domain.DomainName);
|
||||
|
||||
|
||||
if (domain != null)
|
||||
{
|
||||
if (domain.ZoneItemId != 0)
|
||||
{
|
||||
ServerController.AddServiceDNSRecords(domain.PackageId, ResourceGroups.Mail, domain, "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// update domain
|
||||
domain.MailDomainId = itemId;
|
||||
ServerController.UpdateDomain(domain);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue