diff --git a/filemanager/filemanager.py b/filemanager/filemanager.py index 1b65d29a3..9f6e9a32a 100755 --- a/filemanager/filemanager.py +++ b/filemanager/filemanager.py @@ -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) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index a33421611..bba011f20 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -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) diff --git a/plogical/remoteTransferUtilities.py b/plogical/remoteTransferUtilities.py index 5df7b9b91..76a1ef5c0 100755 --- a/plogical/remoteTransferUtilities.py +++ b/plogical/remoteTransferUtilities.py @@ -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: