diff --git a/debian/postinst b/debian/postinst index ed537325c..b73619b9e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -68,6 +68,8 @@ if [ "$1" = configure ]; then echo Updating hub /usr/bin/cscli hub update + /usr/bin/cscli hub upgrade + if [ "$COLLECTIONS" = true ]; then set +e CSCLI_BIN_INSTALLED="/usr/bin/cscli" SILENT=true install_collection diff --git a/pkg/cwhub/sync.go b/pkg/cwhub/sync.go index 59c1383d7..ed99f4806 100644 --- a/pkg/cwhub/sync.go +++ b/pkg/cwhub/sync.go @@ -467,7 +467,7 @@ func (i *Item) checkSubItemVersions() []string { if !sub.State.UpToDate { i.State.UpToDate = false - warn = append(warn, fmt.Sprintf("%s is tainted by outdated %s", i.Name, sub.FQName())) + warn = append(warn, fmt.Sprintf("%s is outdated because of %s", i.Name, sub.FQName())) continue } diff --git a/rpm/SPECS/crowdsec.spec b/rpm/SPECS/crowdsec.spec index eba022d9b..ca912d58e 100644 --- a/rpm/SPECS/crowdsec.spec +++ b/rpm/SPECS/crowdsec.spec @@ -176,6 +176,7 @@ if [ $1 == 1 ]; then fi cscli hub update + cscli hub upgrade CSCLI_BIN_INSTALLED="/usr/bin/cscli" SILENT=true install_collection GREEN='\033[0;32m'