From c1e91f0aba55eb987db82f8a2ee00ab72449c86e Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Tue, 30 Jul 2024 19:04:46 +0200 Subject: [PATCH] Adding rm/del instruction for agents. --- pkg/templates/usage.templ | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/templates/usage.templ b/pkg/templates/usage.templ index 5bc894d..6100bff 100644 --- a/pkg/templates/usage.templ +++ b/pkg/templates/usage.templ @@ -15,10 +15,12 @@ templ Usage(secure string, host string, username string) { `}curl http{secure}://{host}/static/agent > agent{` chmod 755 agent `}./agent --id ID ws{secure}://{host}{` + rm -f agent # windows `}curl http{secure}://{host}/static/agent.exe > agent.exe{` `}agent --id ID ws{secure}://{host}{` + del agent.exe `}

Above, ID is a unique id for the job, the so-called rendez-cous ID. This should not conflict with IDs