wizard: removed jq dependency (#1460)

This commit is contained in:
mmetc 2022-04-20 09:45:23 +02:00 committed by GitHub
parent d9f111c4ca
commit d7a269a6e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ FROM golang:${GOVERSION}-alpine AS build
WORKDIR /go/src/crowdsec
# wizard.sh requires GNU coreutils
RUN apk add --no-cache git jq gcc libc-dev make bash gettext binutils-gold coreutils
RUN apk add --no-cache git gcc libc-dev make bash gettext binutils-gold coreutils
COPY . .

View file

@ -508,7 +508,7 @@ install_plugins(){
check_running_bouncers() {
#when uninstalling, check if user still has bouncers
BOUNCERS_COUNT=$(${CSCLI_BIN} bouncers list -o=json | jq '. | length')
BOUNCERS_COUNT=$(${CSCLI_BIN} bouncers list -o=raw | tail -n +2 | wc -l)
if [[ ${BOUNCERS_COUNT} -gt 0 ]] ; then
if [[ ${FORCE_MODE} == "false" ]]; then
echo "WARNING : You have at least one bouncer registered (cscli bouncers list)."