From 428791c357a0a66db37beb04f96d7852ddc18e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20Ba=C5=9Faran?= Date: Tue, 22 Aug 2017 08:59:42 +0300 Subject: [PATCH] changed execute command over ssh --- opt/ahenk/base/system/system.py | 2 +- opt/ahenk/base/util/util.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opt/ahenk/base/system/system.py b/opt/ahenk/base/system/system.py index bf15459..0206eb6 100644 --- a/opt/ahenk/base/system/system.py +++ b/opt/ahenk/base/system/system.py @@ -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') diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index 243ef35..fa258b6 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -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)