mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +01:00
bug fix in dmarc ref: https://github.com/usmannasir/cyberpanel/issues/1191#issue-2095331015
This commit is contained in:
@@ -171,6 +171,18 @@ class DNSManager:
|
||||
finalData['domainsList'] = []
|
||||
import tldextract
|
||||
|
||||
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache'
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python*/site-packages/tldextract/.suffix_cache'
|
||||
ProcessUtilities.executioner(command, None, True)
|
||||
|
||||
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache'
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
for items in tempList:
|
||||
extractDomain = tldextract.extract(items)
|
||||
subDomain = extractDomain.subdomain
|
||||
|
||||
Reference in New Issue
Block a user