This commit is contained in:
Your Name
2025-04-25 18:54:31 +12:00
parent bbf2575718
commit d028a4d8c6
15 changed files with 195 additions and 15 deletions

View File

@ -134,14 +134,24 @@ std::string get_local_service_env_path(const std::string &server_name, const std
return env.get_DROPSHELL_DIR();
}
std::string get_remote_service_path(const std::string &server_name, const std::string &service_name)
std::string get_remote_services_path(const std::string &server_name)
{
if (server_name.empty() || service_name.empty())
if (server_name.empty())
return std::string();
std::string dropshell_path = get_remote_DROPSHELL_path(server_name);
if (dropshell_path.empty())
return std::string();
return (fs::path(dropshell_path) / service_name).string();
return (fs::path(dropshell_path) / "services").string();
}
std::string get_remote_service_path(const std::string &server_name, const std::string &service_name)
{
if (server_name.empty() || service_name.empty())
return std::string();
std::string services_path = get_remote_services_path(server_name);
if (services_path.empty())
return std::string();
return (fs::path(services_path) / service_name).string();
}
std::string get_remote_service_config_path(const std::string &server_name, const std::string &service_name)