Skip to content

Commit 058d491

Browse files
committed
Exit with error if prompted for sudo password on uninstall.
1 parent 979c742 commit 058d491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

myDevices/cloud/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def ProcessAgentCommand(self, message):
422422
error = None
423423
try:
424424
if message['suffix'] == 'uninstall':
425-
output, result = executeCommand('sudo /etc/myDevices/uninstall/uninstall.sh', disablePipe=True)
425+
output, result = executeCommand('sudo -n /etc/myDevices/uninstall/uninstall.sh', disablePipe=True)
426426
debug('ProcessAgentCommand: {}, result: {}, output: {}'.format(message, result, output))
427427
if result != 0:
428428
error = 'Error uninstalling agent'

0 commit comments

Comments
 (0)