changed execute command over ssh

This commit is contained in:
İsmail Başaran 2017-08-22 08:59:42 +03:00
parent b3c08719f9
commit 428791c357
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@ class System:
@staticmethod
def received_dir_path():
path = '/tmp/.ahenk/'
path = '/tmp/' # move this to properties
if Util.is_exist(path) is False:
Util.create_directory(path)
Util.set_permission(path, '777')

View file

@ -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)