mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-02 02:10:48 +01:00
Merge branch 'v2.0.0' into v2.0.1
This commit is contained in:
@@ -524,13 +524,19 @@ class FileManager:
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
for childs in website.childdomains_set.all():
|
||||
command = "find %s -type d -exec chmod 0755 {} \;" % (childs.path)
|
||||
ProcessUtilities.popenExecutioner(command)
|
||||
|
||||
command = "find %s -type f -exec chmod 0644 {} \;" % (childs.path)
|
||||
ProcessUtilities.popenExecutioner(command)
|
||||
|
||||
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)
|
||||
command = 'chmod 755 %s' % (childs.path)
|
||||
ProcessUtilities.popenExecutioner(command)
|
||||
|
||||
command = 'chmod %s:%s %s' % (externalApp, groupName, childs.path)
|
||||
|
||||
Reference in New Issue
Block a user