Tidy ssh commands
This commit is contained in:
@ -217,11 +217,9 @@ std::map<std::string, ServiceStatus> service_runner::get_all_services_status(std
|
||||
}
|
||||
|
||||
std::string script_path = remote_service_template_path + "/" + command + ".sh";
|
||||
std::string ssh_cmd = env.construct_ssh_cmd() + "'cd " + quote(remote_service_template_path) +
|
||||
" && /bin/bash "+quote(script_path)+" "+quote(remote_service_config_path)+"'";
|
||||
|
||||
std::string output;
|
||||
if (!env.execute_local_command_and_capture_output(ssh_cmd, output))
|
||||
if (!env.execute_ssh_command_and_capture_output("'cd " + quote(remote_service_template_path) +
|
||||
" && /bin/bash "+quote(script_path)+"'", output))
|
||||
return status;
|
||||
|
||||
std::stringstream ss(output);
|
||||
|
Reference in New Issue
Block a user