mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-09 06:46: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.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,
|
||||
domain_id=newZone.id,
|
||||
|
||||
@@ -486,7 +486,7 @@ class cPanelImporter:
|
||||
zone.save()
|
||||
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,
|
||||
domain_id=zone.id,
|
||||
|
||||
@@ -199,7 +199,7 @@ class DNS:
|
||||
auth=1)
|
||||
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,
|
||||
# domain_id=zone.id,
|
||||
@@ -344,7 +344,7 @@ class DNS:
|
||||
|
||||
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,
|
||||
# domain_id=zone.id,
|
||||
|
||||
@@ -362,12 +362,16 @@ class virtualHostUtilities:
|
||||
if not os.path.exists(virtualHostUtilities.redisConf):
|
||||
installUtilities.installUtilities.reStartLiteSpeed()
|
||||
|
||||
logging.CyberCPLogFileWriter.statusWriter(tempStatusPath, 'SSL set up done..,70')
|
||||
|
||||
if ssl == 0:
|
||||
if not os.path.exists(virtualHostUtilities.redisConf):
|
||||
installUtilities.installUtilities.reStartLiteSpeed()
|
||||
|
||||
vhost.finalizeVhostCreation(virtualHostName, virtualHostUser)
|
||||
|
||||
logging.CyberCPLogFileWriter.statusWriter(tempStatusPath, 'vHost finalized..,70')
|
||||
|
||||
## Check If Apache is requested
|
||||
|
||||
confPath = vhost.Server_root + "/conf/vhosts/" + virtualHostName
|
||||
|
||||
Reference in New Issue
Block a user