Add overrides.env support for per-location service env overrides
This commit is contained in:
@@ -43,6 +43,14 @@ namespace dropshell
|
||||
return localpath::agent_remote() + "/agent.hash";
|
||||
}
|
||||
|
||||
std::string overrides_env_for_server(const std::string &server_name)
|
||||
{
|
||||
std::string serverpath = localpath::server(server_name);
|
||||
if (serverpath.empty())
|
||||
return "";
|
||||
return (fs::path(get_parent(serverpath)) / filenames::overrides_env).string();
|
||||
}
|
||||
|
||||
} // namespace localfile
|
||||
|
||||
std::string get_local_agent_hash()
|
||||
|
||||
Reference in New Issue
Block a user