mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-23 13:22:17 +03:00
bugfix: execute command with ssh
This commit is contained in:
parent
428791c357
commit
e02d8a3c4f
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ class Util:
|
|||
|
||||
try:
|
||||
if ip:
|
||||
command = 'ssh root@{0} \'{1}\''.format(ip, command)
|
||||
command = 'ssh root@{0} "{1}"'.format(ip, command)
|
||||
|
||||
elif as_user:
|
||||
command = 'su - {0} -c "{1}"'.format(as_user, command)
|
||||
|
|
Loading…
Reference in a new issue