diff --git a/filemanager/filemanager.py b/filemanager/filemanager.py index 33a9a2e4e..7dd0f4d17 100755 --- a/filemanager/filemanager.py +++ b/filemanager/filemanager.py @@ -386,9 +386,12 @@ class FileManager: command = 'tar -czvf ' + compressedFileName + ' ' for item in self.data['listOfFiles']: - command = command + self.returnPathEnclosed(self.data['basePath'] + '/' + item) + ' ' + command = '%s%s ' % (command, self.returnPathEnclosed(item)) - ProcessUtilities.executioner(command, website.externalApp) + + finalCommand = 'cd %s && %s' % (self.data['basePath'], command) + + ProcessUtilities.executioner(finalCommand, website.externalApp) self.changeOwner(self.data['compressedFileName']) diff --git a/plogical/processUtilities.py b/plogical/processUtilities.py index 88c179582..ac7085653 100755 --- a/plogical/processUtilities.py +++ b/plogical/processUtilities.py @@ -198,7 +198,7 @@ class ProcessUtilities(multi.Thread): command = command.replace('sudo', '') sock.sendall(command) - #logging.writeToFile(command) + logging.writeToFile(command) data = ""