bug fix: file manager permissions

This commit is contained in:
Usman Nasir
2020-03-06 12:10:05 +05:00
parent 20a88b0dab
commit 9f642cab39

View File

@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from django.shortcuts import render,redirect from django.shortcuts import render,redirect
from loginSystem.models import Administrator from loginSystem.models import Administrator
from loginSystem.views import loadLoginPage from loginSystem.views import loadLoginPage
@@ -52,6 +50,9 @@ def changePermissions(request):
command = 'chown -R %s:%s /home/%s/public_html/*' % (externalApp, externalApp, domainName) command = 'chown -R %s:%s /home/%s/public_html/*' % (externalApp, externalApp, domainName)
ProcessUtilities.popenExecutioner(command) ProcessUtilities.popenExecutioner(command)
command = 'chown -R %s:%s /home/%s/public_html/.[^.]*' % (externalApp, externalApp, domainName)
ProcessUtilities.popenExecutioner(command)
command = "chown root:nobody /home/" + domainName+"/logs" command = "chown root:nobody /home/" + domainName+"/logs"
ProcessUtilities.popenExecutioner(command) ProcessUtilities.popenExecutioner(command)