merge 2.0.0

This commit is contained in:
Usman Nasir
2020-04-28 05:41:04 +05:00
3 changed files with 4 additions and 3 deletions

View File

@@ -420,7 +420,7 @@ class FileManager:
ProcessUtilities.executioner(command, website.externalApp)
self.changeOwner(self.data['extractionLocation'])
self.fixPermissions(domainName)
json_data = json.dumps(finalData)
return HttpResponse(json_data)

View File

@@ -330,7 +330,6 @@ class InstallCyberPanel:
def installPureFTPD(self):
if self.distro == ubuntu:
command = 'DEBIAN_FRONTEND=noninteractive apt install pure-ftpd-mysql -y'
os.system(command)
@@ -354,7 +353,6 @@ class InstallCyberPanel:
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
####### Install pureftpd to system startup
command = "systemctl enable " + install.preFlightsChecks.pureFTPDServiceName(self.distro)

View File

@@ -193,6 +193,9 @@ class remoteTransferUtilities:
command = "sudo scp -o StrictHostKeyChecking=no -i /root/.ssh/cyberpanel " + completedPathToSend + " root@" + IPAddress + ":/home/backup/transfer-" + folderNumber + "/"
subprocess.call(shlex.split(command), stdout=writeToFile)
if os.path.exists(ProcessUtilities.debugPath):
logging.CyberCPLogFileWriter.writeToFile(command)
os.remove(completedPathToSend)
except BaseException as msg: