From f10187bd6d363d53b2d550af193b823d53ee0bca Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Tue, 2 Nov 2021 09:19:22 +0100 Subject: [PATCH] typos (#1036) --- cmd/crowdsec/crowdsec.go | 2 +- docker/docker_start.sh | 6 +++--- pkg/cwhub/loader.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/crowdsec/crowdsec.go b/cmd/crowdsec/crowdsec.go index ce10312c4..89af7b8cb 100644 --- a/cmd/crowdsec/crowdsec.go +++ b/cmd/crowdsec/crowdsec.go @@ -72,7 +72,7 @@ func runCrowdsec(cConfig *csconfig.Config, parsers *parser.Parsers) error { bucketWg := &sync.WaitGroup{} bucketsTomb.Go(func() error { bucketWg.Add(1) - /*restore as well previous state if present*/ + /*restore previous state as well if present*/ if cConfig.Crowdsec.BucketStateFile != "" { log.Warningf("Restoring buckets state from %s", cConfig.Crowdsec.BucketStateFile) if err := leaky.LoadBucketsState(cConfig.Crowdsec.BucketStateFile, buckets, holders); err != nil { diff --git a/docker/docker_start.sh b/docker/docker_start.sh index 77198e4b0..3eaab29a8 100644 --- a/docker/docker_start.sh +++ b/docker/docker_start.sh @@ -6,7 +6,7 @@ if [ "$CONFIG_FILE" != "" ]; then CS_CONFIG_FILE="$CONFIG_FILE" fi -# regenerate lcaol agent credentials (ignore if agent is disabled) +# regenerate local agent credentials (ignore if agent is disabled) if [ "$DISABLE_AGENT" == "" ] ; then echo "Regenerate local agent credentials" cscli -c "$CS_CONFIG_FILE" machines delete localhost @@ -20,7 +20,7 @@ if [ "$DISABLE_AGENT" == "" ] ; then fi fi -# Check if lapi need to register automatically an agent +# Check if lapi needs to automatically register an agent echo Check if lapi need to register automatically an agent if [ "$DISABLE_LOCAL_API" == "" ] && [ "$AGENT_USERNAME" != "" ] && [ "$AGENT_PASSWORD" != "" ] ; then cscli -c "$CS_CONFIG_FILE" machines add $AGENT_USERNAME --password $AGENT_PASSWORD @@ -96,4 +96,4 @@ if [ "$LEVEL_INFO" == "true" ] || [ "$LEVEL_INFO" == "TRUE" ]; then ARGS="$ARGS -info" fi -exec crowdsec $ARGS \ No newline at end of file +exec crowdsec $ARGS diff --git a/pkg/cwhub/loader.go b/pkg/cwhub/loader.go index a5ba94069..ab13dca8d 100644 --- a/pkg/cwhub/loader.go +++ b/pkg/cwhub/loader.go @@ -109,7 +109,7 @@ func parser_visit(path string, f os.FileInfo, err error) error { if err != nil { return fmt.Errorf("unable to read symlink of %s", path) } - //the symlink target doesn't exist, user might have remove ~/.hub/hub/...yaml without deleting /etc/crowdsec/....yaml + //the symlink target doesn't exist, user might have removed ~/.hub/hub/...yaml without deleting /etc/crowdsec/....yaml _, err := os.Lstat(hubpath) if os.IsNotExist(err) { log.Infof("%s is a symlink to %s that doesn't exist, deleting symlink", path, hubpath)