This commit is contained in:
usmannasir
2024-01-23 19:29:41 +05:00
parent 2b2115d193
commit f6c1c7fcdc
2 changed files with 15 additions and 3 deletions

View File

@@ -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