From dd1f7ba5444927fa59b9bd9b7c5881a89d9de3a7 Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 14 May 2026 21:46:26 -0700 Subject: [PATCH] Make crowdsec --crowdsec --- install/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/main.go b/install/main.go index 13e506d06..b3979ace9 100644 --- a/install/main.go +++ b/install/main.go @@ -4,6 +4,7 @@ import ( "crypto/rand" "embed" "encoding/base64" + "flag" "fmt" "io" "io/fs" @@ -68,6 +69,9 @@ const ( func main() { + crowdsecFlag := flag.Bool("crowdsec", false, "Enable the CrowdSec installation prompt") + flag.Parse() + // print a banner about prerequisites - opening port 80, 443, 51820, and 21820 on the VPS and firewall and pointing your domain to the VPS IP with a records. Docs are at http://localhost:3000/Getting%20Started/dns-networking fmt.Println("Welcome to the Pangolin installer!") @@ -206,7 +210,7 @@ func main() { } } - if !checkIsCrowdsecInstalledInCompose() { + if *crowdsecFlag && !checkIsCrowdsecInstalledInCompose() { fmt.Println("\n=== CrowdSec Install ===") // check if crowdsec is installed if readBool("Would you like to install CrowdSec?", false) {