This commit is contained in:
Your Name
2025-04-25 11:25:19 +12:00
parent 5e8ec90064
commit 4c0c052f20
16 changed files with 91 additions and 22 deletions

View File

@ -321,10 +321,13 @@ std::vector<int> service_runner::get_ports()
std::cerr << "Error: Server service not initialized" << std::endl;
return ports;
}
std::string script_path = mRemote_service_template_path + "/_ports.sh";
// Check if ports script exists
std::string command = "_ports";
if (!template_command_exists(m_service_info.template_name, command)) {
return ports;
}
std::string script_path = mRemote_service_template_path + "/" + command + ".sh";
if (!check_remote_file_exists(script_path)) {
return ports;
}