mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
This commit is contained in:
@@ -2843,6 +2843,9 @@ class CloudManager:
|
|||||||
|
|
||||||
zones = cf.zones.get(params = {'per_page':100})
|
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():
|
for website in Websites.objects.all():
|
||||||
import tldextract
|
import tldextract
|
||||||
extractDomain = tldextract.extract(website.domain)
|
extractDomain = tldextract.extract(website.domain)
|
||||||
@@ -2882,6 +2885,9 @@ class CloudManager:
|
|||||||
|
|
||||||
### For child domainsa
|
### 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
|
from websiteFunctions.models import ChildDomains
|
||||||
for website in ChildDomains.objects.all():
|
for website in ChildDomains.objects.all():
|
||||||
|
|
||||||
|
|||||||
@@ -659,6 +659,9 @@ class MailServerManager(multi.Thread):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
|
||||||
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
import tldextract
|
import tldextract
|
||||||
|
|
||||||
extractDomain = tldextract.extract(domainName)
|
extractDomain = tldextract.extract(domainName)
|
||||||
@@ -717,6 +720,10 @@ class MailServerManager(multi.Thread):
|
|||||||
DNS.dnsTemplate(domainName, admin)
|
DNS.dnsTemplate(domainName, admin)
|
||||||
|
|
||||||
if output.find("1,None") > -1:
|
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
|
import tldextract
|
||||||
|
|
||||||
extractDomain = tldextract.extract(domainName)
|
extractDomain = tldextract.extract(domainName)
|
||||||
|
|||||||
@@ -348,6 +348,7 @@ class IncScheduler():
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def startNormalBackups(type):
|
def startNormalBackups(type):
|
||||||
|
|
||||||
from plogical.processUtilities import ProcessUtilities
|
from plogical.processUtilities import ProcessUtilities
|
||||||
from plogical.backupSchedule import backupSchedule
|
from plogical.backupSchedule import backupSchedule
|
||||||
import socket
|
import socket
|
||||||
|
|||||||
@@ -114,6 +114,9 @@ class DNS:
|
|||||||
ipData = f.read()
|
ipData = f.read()
|
||||||
ipAddress = ipData.split('\n', 1)[0]
|
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
|
import tldextract
|
||||||
|
|
||||||
extractDomain = tldextract.extract(domain)
|
extractDomain = tldextract.extract(domain)
|
||||||
@@ -515,6 +518,9 @@ class DNS:
|
|||||||
def createDKIMRecords(domain):
|
def createDKIMRecords(domain):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
|
||||||
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
import tldextract
|
import tldextract
|
||||||
|
|
||||||
extractDomain = tldextract.extract(domain)
|
extractDomain = tldextract.extract(domain)
|
||||||
|
|||||||
@@ -218,6 +218,9 @@ class mailUtilities:
|
|||||||
try:
|
try:
|
||||||
## Generate DKIM Keys
|
## Generate DKIM Keys
|
||||||
|
|
||||||
|
command = 'chown cyberpanel:cyberpanel -R /usr/local/CyberCP/lib/python3.6/site-packages/tldextract/.suffix_cache'
|
||||||
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
import tldextract
|
import tldextract
|
||||||
|
|
||||||
actualDomain = virtualHostName
|
actualDomain = virtualHostName
|
||||||
|
|||||||
Reference in New Issue
Block a user