bug fix to fm after security improvements

This commit is contained in:
Usman Nasir
2020-02-05 15:34:12 +05:00
parent 20ae44e986
commit b5c0c169fd
2 changed files with 3 additions and 3 deletions

View File

@@ -59,10 +59,10 @@ def changePermissions(request):
command = "sudo chown -R lscpd:lscpd /home/" + domainName+"/logs"
ProcessUtilities.popenExecutioner(command)
command = "sudo find %s -type d -exec chmod 0755 {} \;" % ("/home/" + domainName + "/public_html")
command = "find %s -type d -exec chmod 0755 {} \;" % ("/home/" + domainName + "/public_html")
ProcessUtilities.popenExecutioner(command)
command = "sudo find %s -type f -exec chmod 0644 {} \;" % ("/home/" + domainName + "/public_html")
command = "find %s -type f -exec chmod 0644 {} \;" % ("/home/" + domainName + "/public_html")
ProcessUtilities.popenExecutioner(command)
data_ret = {'permissionsChanged': 1, 'error_message': "None"}