mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 14:56:10 +01:00
bug fix: set correct soa expire value
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user