Skip to content

Commit 9f642ca

Browse files
committed
bug fix: file manager permissions
1 parent 20a88b0 commit 9f642ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

filemanager/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
3-
42
from django.shortcuts import render,redirect
53
from loginSystem.models import Administrator
64
from loginSystem.views import loadLoginPage
@@ -52,6 +50,9 @@ def changePermissions(request):
5250
command = 'chown -R %s:%s /home/%s/public_html/*' % (externalApp, externalApp, domainName)
5351
ProcessUtilities.popenExecutioner(command)
5452

53+
command = 'chown -R %s:%s /home/%s/public_html/.[^.]*' % (externalApp, externalApp, domainName)
54+
ProcessUtilities.popenExecutioner(command)
55+
5556
command = "chown root:nobody /home/" + domainName+"/logs"
5657
ProcessUtilities.popenExecutioner(command)
5758

0 commit comments

Comments
 (0)