Add overrides.env support for per-location service env overrides
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 48s
Build-Test-Publish / build (linux/arm64) (push) Successful in 3m44s

This commit is contained in:
j
2026-03-30 08:04:23 +13:00
parent bf9cdeccc7
commit 735e2f083a
7 changed files with 169 additions and 3 deletions

View File

@@ -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()