string comparison fix (#1220)

This commit is contained in:
mmetc 2022-02-01 09:55:28 +01:00 committed by GitHub
parent 383eebf2b6
commit 9c9639d19b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
debian/postinst vendored
View file

@ -73,15 +73,15 @@ if [ "$1" = configure ]; then
sed -i "s/127.0.0.1:8080/$LAPI_HOST/g" /etc/crowdsec/config.yaml
fi
fi
echo Updating hub
/usr/bin/cscli hub update
if [ $COLLECTIONS=true ]; then
if [ "$COLLECTIONS" = true ]; then
set +e
CSCLI_BIN_INSTALLED="/usr/bin/cscli" SILENT=true install_collection
set -e
fi
if [[ -f /var/lib/crowdsec/data/crowdsec.db.backup ]]; then
cp /var/lib/crowdsec/data/crowdsec.db.backup /var/lib/crowdsec/data/crowdsec.db
rm -f /var/lib/crowdsec/data/crowdsec.db.backup
@ -97,5 +97,4 @@ if [ "$1" = configure ]; then
fi
fi
echo "You can always run the configuration again interactively by using '/usr/share/crowdsec/wizard.sh -c"