Skip to content

Commit

Permalink
bug fix: file manager permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Mar 6, 2020
1 parent 1f1863f commit 20a88b0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions filemanager/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
from loginSystem.models import Administrator
from loginSystem.views import loadLoginPage
import plogical.CyberCPLogFileWriter as logging
from django.http import HttpResponse,Http404
from django.http import HttpResponse
import json
from websiteFunctions.models import Websites
import subprocess
import shlex
import os
from plogical.virtualHostUtilities import virtualHostUtilities
from plogical.acl import ACLManager
from .filemanager import FileManager as FM
from plogical.processUtilities import ProcessUtilities
Expand Down Expand Up @@ -53,7 +49,7 @@ def changePermissions(request):
website = Websites.objects.get(domain=domainName)
externalApp = website.externalApp

command = "chown -R " + externalApp + ":" + externalApp +" /home/"+domainName
command = 'chown -R %s:%s /home/%s/public_html/*' % (externalApp, externalApp, domainName)
ProcessUtilities.popenExecutioner(command)

command = "chown root:nobody /home/" + domainName+"/logs"
Expand Down

0 comments on commit 20a88b0

Please sign in to comment.