diff --git a/cloudAPI/cloudManager.py b/cloudAPI/cloudManager.py index 25f5c766b..84e36e4e5 100755 --- a/cloudAPI/cloudManager.py +++ b/cloudAPI/cloudManager.py @@ -2843,6 +2843,9 @@ class CloudManager: zones = cf.zones.get(params = {'per_page':100}) + command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache' + ProcessUtilities.executioner(command) + for website in Websites.objects.all(): import tldextract extractDomain = tldextract.extract(website.domain) @@ -2882,6 +2885,9 @@ class CloudManager: ### For child domainsa + command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache' + ProcessUtilities.executioner(command) + from websiteFunctions.models import ChildDomains for website in ChildDomains.objects.all(): diff --git a/mailServer/mailserverManager.py b/mailServer/mailserverManager.py index bbcc58d46..5a8f0b316 100755 --- a/mailServer/mailserverManager.py +++ b/mailServer/mailserverManager.py @@ -659,6 +659,9 @@ class MailServerManager(multi.Thread): try: + command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache' + ProcessUtilities.executioner(command) + import tldextract extractDomain = tldextract.extract(domainName) @@ -717,6 +720,10 @@ class MailServerManager(multi.Thread): DNS.dnsTemplate(domainName, admin) if output.find("1,None") > -1: + + command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache' + ProcessUtilities.executioner(command) + import tldextract extractDomain = tldextract.extract(domainName) diff --git a/plogical/IncScheduler.py b/plogical/IncScheduler.py index d3a9eea45..eac84a643 100644 --- a/plogical/IncScheduler.py +++ b/plogical/IncScheduler.py @@ -348,6 +348,7 @@ class IncScheduler(): @staticmethod def startNormalBackups(type): + from plogical.processUtilities import ProcessUtilities from plogical.backupSchedule import backupSchedule import socket diff --git a/plogical/dnsUtilities.py b/plogical/dnsUtilities.py index 401394dae..17bb25620 100755 --- a/plogical/dnsUtilities.py +++ b/plogical/dnsUtilities.py @@ -114,6 +114,9 @@ class DNS: ipData = f.read() ipAddress = ipData.split('\n', 1)[0] + command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache' + ProcessUtilities.executioner(command) + import tldextract extractDomain = tldextract.extract(domain) @@ -515,6 +518,9 @@ class DNS: def createDKIMRecords(domain): try: + command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache' + ProcessUtilities.executioner(command) + import tldextract extractDomain = tldextract.extract(domain) diff --git a/plogical/mailUtilities.py b/plogical/mailUtilities.py index e79f5871d..747a3a179 100755 --- a/plogical/mailUtilities.py +++ b/plogical/mailUtilities.py @@ -218,6 +218,9 @@ class mailUtilities: try: ## Generate DKIM Keys + command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache' + ProcessUtilities.executioner(command) + import tldextract actualDomain = virtualHostName