mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
remove filemanager.py
This commit is contained in:
@@ -5,7 +5,6 @@ from plogical.processUtilities import ProcessUtilities
|
||||
from websiteFunctions.models import Websites
|
||||
from random import randint
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
import html.parser
|
||||
from plogical.acl import ACLManager
|
||||
|
||||
class FileManager:
|
||||
@@ -522,4 +521,17 @@ class FileManager:
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
command = 'chmod 750 /home/%s/public_html' % (domainName)
|
||||
ProcessUtilities.executioner(command)
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
for childs in website.childdomains_set.all():
|
||||
command = 'chown -R %s:%s %s/*' % (externalApp, externalApp, childs.path)
|
||||
ProcessUtilities.popenExecutioner(command)
|
||||
|
||||
command = 'chown -R %s:%s %s/.[^.]*' % (externalApp, externalApp, childs.path)
|
||||
ProcessUtilities.popenExecutioner(command)
|
||||
|
||||
command = 'chmod 750 %s' % (childs.path)
|
||||
ProcessUtilities.popenExecutioner(command)
|
||||
|
||||
command = 'chmod %s:%s %s' % (externalApp, groupName, childs.path)
|
||||
ProcessUtilities.popenExecutioner(command)
|
||||
Reference in New Issue
Block a user