Update source/src/commands/shared_commands.cpp
This commit is contained in:
@@ -170,10 +170,11 @@ namespace dropshell
|
||||
|
||||
// Run all_status.sh on the remote server to get all service statuses in one call
|
||||
std::string agent_path = remotepath(server_name, user).agent();
|
||||
std::string script_path = agent_path + "/all_status.sh";
|
||||
std::string output;
|
||||
|
||||
sCommand cmd(agent_path, "all_status.sh", {});
|
||||
bool success = execute_ssh_command(server_env.get_SSH_INFO(user), cmd, cMode::Silent | cMode::NoBB64, &output);
|
||||
sCommand cmd(agent_path, script_path, {});
|
||||
bool success = execute_ssh_command(server_env.get_SSH_INFO(user), cmd, cMode::Silent, &output);
|
||||
|
||||
if (!success || output.empty()) {
|
||||
debug << "Failed to run all_status.sh on " << server_name << " for user " << user << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user