mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
run 'hub upgrade' in rpm/deb postinst, improve hub message (#3440)
This commit is contained in:
parent
bfed861ba7
commit
dc28ae58dc
3 changed files with 4 additions and 1 deletions
2
debian/postinst
vendored
2
debian/postinst
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue