bug fix: dkim manager

This commit is contained in:
usman
2021-09-07 19:38:30 +05:00
parent a270abd1b1
commit 270889bdec
4 changed files with 24 additions and 0 deletions

View File

@@ -2829,6 +2829,9 @@ class CloudManager:
command = 'chown -R cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/'
ProcessUtilities.executioner(command)
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
ProcessUtilities.executioner(command)
##
ipFile = "/etc/cyberpanel/machineIP"
@@ -2846,6 +2849,9 @@ class CloudManager:
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
ProcessUtilities.executioner(command)
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
ProcessUtilities.executioner(command)
for website in Websites.objects.all():
import tldextract
extractDomain = tldextract.extract(website.domain)
@@ -2888,6 +2894,9 @@ class CloudManager:
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
ProcessUtilities.executioner(command)
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.8/site-packages/tldextract/.suffix_cache/publicsuffix.org-tlds/'
ProcessUtilities.executioner(command)
from websiteFunctions.models import ChildDomains
for website in ChildDomains.objects.all():