bug fix: tldextract permissions

This commit is contained in:
usman@cyberpersons.com
2023-08-14 15:01:55 +05:00
parent b7f31fd0b9
commit dd8ef0598f
4 changed files with 16 additions and 16 deletions

View File

@@ -2832,8 +2832,8 @@ class CloudManager:
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/python3.10/site-packages/tldextract/.suffix_cache/urls/62bf135d1c2f3d4db4228b9ecaf507a2.tldextract.json.lock'
ProcessUtilities.executioner(command)
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.10/site-packages/tldextract/.suffix_cache/urls/*.tldextract.json'
ProcessUtilities.executioner(command, None, True)
##
@@ -2855,8 +2855,8 @@ class CloudManager:
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/python3.10/site-packages/tldextract/.suffix_cache/urls/62bf135d1c2f3d4db4228b9ecaf507a2.tldextract.json.lock'
ProcessUtilities.executioner(command)
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.10/site-packages/tldextract/.suffix_cache/urls/*.tldextract.json'
ProcessUtilities.executioner(command, None, True)
for website in Websites.objects.all():
import tldextract
@@ -2903,8 +2903,8 @@ class CloudManager:
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/python3.10/site-packages/tldextract/.suffix_cache/urls/62bf135d1c2f3d4db4228b9ecaf507a2.tldextract.json.lock'
ProcessUtilities.executioner(command)
command = 'chown cyberpanel:cyberpanel /usr/local/CyberCP/lib/python3.10/site-packages/tldextract/.suffix_cache/urls/*.tldextract.json'
ProcessUtilities.executioner(command, None, True)
from websiteFunctions.models import ChildDomains
for website in ChildDomains.objects.all():