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