File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 55from loginSystem .models import Administrator
66from loginSystem .views import loadLoginPage
77import plogical .CyberCPLogFileWriter as logging
8- from django .http import HttpResponse , Http404
8+ from django .http import HttpResponse
99import json
1010from websiteFunctions .models import Websites
11- import subprocess
12- import shlex
13- import os
14- from plogical .virtualHostUtilities import virtualHostUtilities
1511from plogical .acl import ACLManager
1612from .filemanager import FileManager as FM
1713from plogical .processUtilities import ProcessUtilities
@@ -53,7 +49,7 @@ def changePermissions(request):
5349 website = Websites .objects .get (domain = domainName )
5450 externalApp = website .externalApp
5551
56- command = " chown -R " + externalApp + ":" + externalApp + " /home/" + domainName
52+ command = ' chown -R %s:%s /home/%s/public_html/*' % ( externalApp , externalApp , domainName )
5753 ProcessUtilities .popenExecutioner (command )
5854
5955 command = "chown root:nobody /home/" + domainName + "/logs"
You can’t perform that action at this time.
0 commit comments