wizard: removed jq dependency (#1460)
This commit is contained in:
parent
d9f111c4ca
commit
d7a269a6e4
2 changed files with 2 additions and 2 deletions
|
@ -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 . .
|
||||
|
||||
|
|
|
@ -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)."
|
||||
|
|
Loading…
Reference in a new issue