Update source/src/commands/shared_commands.cpp
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 29s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m9s

This commit is contained in:
j
2025-12-30 10:54:39 +13:00
parent e2da779a56
commit 9ff9596c8a

View File

@@ -170,10 +170,11 @@ namespace dropshell
// Run all_status.sh on the remote server to get all service statuses in one call // 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 agent_path = remotepath(server_name, user).agent();
std::string script_path = agent_path + "/all_status.sh";
std::string output; std::string output;
sCommand cmd(agent_path, "all_status.sh", {}); sCommand cmd(agent_path, script_path, {});
bool success = execute_ssh_command(server_env.get_SSH_INFO(user), cmd, cMode::Silent | cMode::NoBB64, &output); bool success = execute_ssh_command(server_env.get_SSH_INFO(user), cmd, cMode::Silent, &output);
if (!success || output.empty()) { if (!success || output.empty()) {
debug << "Failed to run all_status.sh on " << server_name << " for user " << user << std::endl; debug << "Failed to run all_status.sh on " << server_name << " for user " << user << std::endl;