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] 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 ===")