From 1aa155a0afded86a8c8bf91850faff8f886c36ea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 20:35:40 +0000 Subject: [PATCH 1/3] Initial plan From d7311ad947d954aa61c04814edb126ccddf091a7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 20:38:40 +0000 Subject: [PATCH 2/3] Add setup token printing after CrowdSec installation Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com> --- install/crowdsec.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/crowdsec.go b/install/crowdsec.go index 2e388e92..b408b3a0 100644 --- a/install/crowdsec.go +++ b/install/crowdsec.go @@ -96,6 +96,10 @@ func installCrowdsec(config Config) error { fmt.Println(" docker exec crowdsec cscli bouncers add traefik-bouncer") } + // Print the setup token after CrowdSec installation and container restart + fmt.Println("\n=== Setup Token ===") + printSetupToken(config.InstallationContainerType, config.DashboardDomain) + return nil } From 69561caa74527ab9df8fabb22d49aa1e6e5b1f2f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 6 Dec 2025 20:57:57 +0000 Subject: [PATCH 3/3] Fix setup token display condition to include CrowdSec installation Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com> --- install/crowdsec.go | 4 ---- install/main.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/install/crowdsec.go b/install/crowdsec.go index b408b3a0..2e388e92 100644 --- a/install/crowdsec.go +++ b/install/crowdsec.go @@ -96,10 +96,6 @@ func installCrowdsec(config Config) error { fmt.Println(" docker exec crowdsec cscli bouncers add traefik-bouncer") } - // Print the setup token after CrowdSec installation and container restart - fmt.Println("\n=== Setup Token ===") - printSetupToken(config.InstallationContainerType, config.DashboardDomain) - return nil } diff --git a/install/main.go b/install/main.go index 1527504e..e1994fc2 100644 --- a/install/main.go +++ b/install/main.go @@ -242,7 +242,7 @@ func main() { } } - if !alreadyInstalled { + if !alreadyInstalled || config.DoCrowdsecInstall { // Setup Token Section fmt.Println("\n=== Setup Token ===")