diff --git a/cmd/crowdsec-cli/console.go b/cmd/crowdsec-cli/console.go index 4896a172b..c0d1bfb17 100644 --- a/cmd/crowdsec-cli/console.go +++ b/cmd/crowdsec-cli/console.go @@ -108,6 +108,9 @@ After running this command your will need to validate the enrollment in the weba } SetConsoleOpts(csconfig.CONSOLE_CONFIGS, true) + if err := csConfig.API.Server.DumpConsoleConfig(); err != nil { + log.Fatalf("failed writing console config : %s", err) + } log.Infof("Enabled tainted&manual alerts sharing, see 'cscli console status'.") log.Infof("Watcher successfully enrolled. Visit https://app.crowdsec.net to accept it.") log.Infof("Please restart crowdsec after accepting the enrollment.")