Skip to content

Commit

Permalink
bug fix: set correct soa expire value
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jan 24, 2024
1 parent 74db3b9 commit c9392be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dns/dnsManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def zoneCreation(self, userID = None, data = None):
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,
Expand Down
2 changes: 1 addition & 1 deletion plogical/cPanelImporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def CreateDNSRecords(self):
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,
Expand Down
4 changes: 2 additions & 2 deletions plogical/dnsUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def dnsTemplate(domain, admin):
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,
Expand Down Expand Up @@ -344,7 +344,7 @@ def dnsTemplate(domain, admin):

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,
Expand Down
4 changes: 4 additions & 0 deletions plogical/virtualHostUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,16 @@ def createVirtualHost(virtualHostName, administratorEmail, phpVersion, virtualHo
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
Expand Down

0 comments on commit c9392be

Please sign in to comment.