Thibault "bui" Koechlin 3 tahun lalu
induk
melakukan
dbde90d24c
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      cmd/crowdsec-cli/console.go

+ 3 - 0
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.")