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)