bug fix: set correct soa expire value

This commit is contained in:
usmannasir
2024-01-24 20:11:15 +05:00
parent 74db3b936f
commit c9392bef93
4 changed files with 8 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ class DNSManager:
newZone = Domains(admin=admin, name=zoneDomain, type="MASTER") newZone = Domains(admin=admin, name=zoneDomain, type="MASTER")
newZone.save() newZone.save()
content = "ns1." + zoneDomain + " hostmaster." + zoneDomain + " 1 10800 3600 604800 3600" content = "ns1." + zoneDomain + " hostmaster." + zoneDomain + " 1 10800 3600 1209600 3600"
soaRecord = Records(domainOwner=newZone, soaRecord = Records(domainOwner=newZone,
domain_id=newZone.id, domain_id=newZone.id,

View File

@@ -486,7 +486,7 @@ class cPanelImporter:
zone.save() zone.save()
pass pass
content = "ns1." + topLevelDomain + " hostmaster." + topLevelDomain + " 1 10800 3600 604800 3600" content = "ns1." + topLevelDomain + " hostmaster." + topLevelDomain + " 1 10800 3600 1209600 3600"
soaRecord = Records(domainOwner=zone, soaRecord = Records(domainOwner=zone,
domain_id=zone.id, domain_id=zone.id,

View File

@@ -199,7 +199,7 @@ class DNS:
auth=1) auth=1)
record.save() record.save()
content = "ns1." + topLevelDomain + " hostmaster." + topLevelDomain + " 1 10800 3600 604800 3600" content = "ns1." + topLevelDomain + " hostmaster." + topLevelDomain + " 1 10800 3600 1209600 3600"
# soaRecord = Records(domainOwner=zone, # soaRecord = Records(domainOwner=zone,
# domain_id=zone.id, # domain_id=zone.id,
@@ -344,7 +344,7 @@ class DNS:
zone.save() zone.save()
content = "ns1." + topLevelDomain + " hostmaster." + topLevelDomain + " 1 10800 3600 604800 3600" content = "ns1." + topLevelDomain + " hostmaster." + topLevelDomain + " 1 10800 3600 1209600 3600"
# soaRecord = Records(domainOwner=zone, # soaRecord = Records(domainOwner=zone,
# domain_id=zone.id, # domain_id=zone.id,

View File

@@ -362,12 +362,16 @@ class virtualHostUtilities:
if not os.path.exists(virtualHostUtilities.redisConf): if not os.path.exists(virtualHostUtilities.redisConf):
installUtilities.installUtilities.reStartLiteSpeed() installUtilities.installUtilities.reStartLiteSpeed()
logging.CyberCPLogFileWriter.statusWriter(tempStatusPath, 'SSL set up done..,70')
if ssl == 0: if ssl == 0:
if not os.path.exists(virtualHostUtilities.redisConf): if not os.path.exists(virtualHostUtilities.redisConf):
installUtilities.installUtilities.reStartLiteSpeed() installUtilities.installUtilities.reStartLiteSpeed()
vhost.finalizeVhostCreation(virtualHostName, virtualHostUser) vhost.finalizeVhostCreation(virtualHostName, virtualHostUser)
logging.CyberCPLogFileWriter.statusWriter(tempStatusPath, 'vHost finalized..,70')
## Check If Apache is requested ## Check If Apache is requested
confPath = vhost.Server_root + "/conf/vhosts/" + virtualHostName confPath = vhost.Server_root + "/conf/vhosts/" + virtualHostName