string comparison fix
@@ -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"
