From acaf8e80d250b969e189dc342a286950c1b78f88 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 6 May 2020 15:51:11 +0500 Subject: [PATCH] bug fix: inc backups --- plogical/processUtilities.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plogical/processUtilities.py b/plogical/processUtilities.py index 1bfe9b31b..9ff4437e4 100755 --- a/plogical/processUtilities.py +++ b/plogical/processUtilities.py @@ -190,10 +190,15 @@ class ProcessUtilities(multi.Thread): sock = ret[0] if user == None: - if command.find('sudo') == -1: + + if command.find('export') > -1: + pass + elif command.find('sudo') == -1: command = 'sudo %s' % (command) + if os.path.exists(ProcessUtilities.debugPath): logging.writeToFile(ProcessUtilities.token + command) + sock.sendall((ProcessUtilities.token + command).encode('utf-8')) else: command = '%s-u %s %s' % (ProcessUtilities.token, user, command)