Skip to content

Commit

Permalink
bug fix: inc backups
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed May 6, 2020
1 parent 577e142 commit acaf8e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plogical/processUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,15 @@ def sendCommand(command, user=None):
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)
Expand Down

0 comments on commit acaf8e8

Please sign in to comment.