string comparison fix (#1220)
This commit is contained in:
parent
383eebf2b6
commit
9c9639d19b
1 changed files with 12 additions and 13 deletions
5
debian/postinst
vendored
5
debian/postinst
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue