mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 04:15:54 +02:00
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
|
WORKDIR /go/src/crowdsec
|
||||||
|
|
||||||
# wizard.sh requires GNU coreutils
|
# 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 . .
|
COPY . .
|
||||||
|
|
||||||
|
|
|
@ -508,7 +508,7 @@ install_plugins(){
|
||||||
|
|
||||||
check_running_bouncers() {
|
check_running_bouncers() {
|
||||||
#when uninstalling, check if user still has 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 [[ ${BOUNCERS_COUNT} -gt 0 ]] ; then
|
||||||
if [[ ${FORCE_MODE} == "false" ]]; then
|
if [[ ${FORCE_MODE} == "false" ]]; then
|
||||||
echo "WARNING : You have at least one bouncer registered (cscli bouncers list)."
|
echo "WARNING : You have at least one bouncer registered (cscli bouncers list)."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue