mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
Fix setup token display condition to include CrowdSec installation
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
if !alreadyInstalled {
|
||||
if !alreadyInstalled || config.DoCrowdsecInstall {
|
||||
// Setup Token Section
|
||||
fmt.Println("\n=== Setup Token ===")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user