Skip to content
Permalink
Browse files
bug fix: file manager permissions
  • Loading branch information
usmannasir committed Mar 6, 2020
1 parent 1f1863f commit 20a88b0dab7c46275518b8923fcc581ce5b3eda1
Showing 1 changed file with 2 additions and 6 deletions.
@@ -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
@@ -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"

0 comments on commit 20a88b0

Please sign in to comment.