Skip to content

Commit 270889b

Browse files
committed
bug fix: dkim manager
1 parent a270abd commit 270889b

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

cloudAPI/cloudManager.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2829,6 +2829,9 @@ def SwitchDNS(self):
28292829
command = 'chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/'
28302830
ProcessUtilities.executioner(command)
28312831

2832+
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
2833+
ProcessUtilities.executioner(command)
2834+
28322835
##
28332836

28342837
ipFile = "/etc/cyberpanel/machineIP"
@@ -2846,6 +2849,9 @@ def SwitchDNS(self):
28462849
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
28472850
ProcessUtilities.executioner(command)
28482851

2852+
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
2853+
ProcessUtilities.executioner(command)
2854+
28492855
for website in Websites.objects.all():
28502856
import tldextract
28512857
extractDomain = tldextract.extract(website.domain)
@@ -2888,6 +2894,9 @@ def SwitchDNS(self):
28882894
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
28892895
ProcessUtilities.executioner(command)
28902896

2897+
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
2898+
ProcessUtilities.executioner(command)
2899+
28912900
from websiteFunctions.models import ChildDomains
28922901
for website in ChildDomains.objects.all():
28932902

mailServer/mailserverManager.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ def fetchDKIMKeys(self):
662662
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
663663
ProcessUtilities.executioner(command)
664664

665+
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
666+
ProcessUtilities.executioner(command)
667+
665668
import tldextract
666669

667670
extractDomain = tldextract.extract(domainName)
@@ -724,6 +727,9 @@ def generateDKIMKeys(self):
724727
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
725728
ProcessUtilities.executioner(command)
726729

730+
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
731+
ProcessUtilities.executioner(command)
732+
727733
import tldextract
728734

729735
extractDomain = tldextract.extract(domainName)

plogical/dnsUtilities.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ def dnsTemplate(domain, admin):
117117
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
118118
ProcessUtilities.executioner(command)
119119

120+
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
121+
ProcessUtilities.executioner(command)
122+
120123
import tldextract
121124

122125
extractDomain = tldextract.extract(domain)
@@ -521,6 +524,9 @@ def createDKIMRecords(domain):
521524
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
522525
ProcessUtilities.executioner(command)
523526

527+
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
528+
ProcessUtilities.executioner(command)
529+
524530
import tldextract
525531

526532
extractDomain = tldextract.extract(domain)

plogical/mailUtilities.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ def setupDKIM(virtualHostName):
221221
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
222222
ProcessUtilities.executioner(command)
223223

224+
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
225+
ProcessUtilities.executioner(command)
226+
224227
import tldextract
225228

226229
actualDomain = virtualHostName

0 commit comments

Comments
 (0)