mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-18 07:06:45 +02:00
bug fix: relative path issue while compressing
This commit is contained in:
@@ -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'])
|
||||
|
||||
|
||||
@@ -198,7 +198,7 @@ class ProcessUtilities(multi.Thread):
|
||||
command = command.replace('sudo', '')
|
||||
sock.sendall(command)
|
||||
|
||||
#logging.writeToFile(command)
|
||||
logging.writeToFile(command)
|
||||
|
||||
data = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user