From b9151a56433d78ea38ef4f1b155969e9f5421e46 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 16 Apr 2020 10:50:27 +0500 Subject: [PATCH] fix https://forums.cyberpanel.net/discussion/4182/back-up-website-sudo-export-command-not-found --- plogical/processUtilities.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plogical/processUtilities.py b/plogical/processUtilities.py index ce5e03d10..e3f276ada 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 and ProcessUtilities.decideDistro() == ProcessUtilities.ubuntu: + 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)