mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 04:15:54 +02:00
Merge f2fcc7eb73
into 505ad36dfd
This commit is contained in:
commit
b43ab45448
1 changed files with 24 additions and 2 deletions
|
@ -447,9 +447,31 @@ for BOUNCER in $(compgen -A variable | grep -i BOUNCER_KEY); do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$ENABLE_CONSOLE_MANAGEMENT" != "" ]; then
|
## Enable console features
|
||||||
|
if [ "$ENABLE_CONSOLE_ALL" != "" ]; then
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
cscli console enable console_management
|
cscli console enable -a
|
||||||
|
else
|
||||||
|
CONSOLE_FLAGS=""
|
||||||
|
if [ "$ENABLE_CONSOLE_MANAGEMENT" != "" ]; then
|
||||||
|
CONSOLE_FLAGS="$CONSOLE_FLAGS console_management"
|
||||||
|
fi
|
||||||
|
if [ "$ENABLE_CONSOLE_CONTEXT" != "" ]; then
|
||||||
|
CONSOLE_FLAGS="$CONSOLE_FLAGS context"
|
||||||
|
fi
|
||||||
|
if [ "$ENABLE_CONSOLE_TAINTED" != "" ]; then
|
||||||
|
CONSOLE_FLAGS="$CONSOLE_FLAGS tainted"
|
||||||
|
fi
|
||||||
|
if [ "$ENABLE_CONSOLE_MANUAL" != "" ]; then
|
||||||
|
CONSOLE_FLAGS="$CONSOLE_FLAGS manual"
|
||||||
|
fi
|
||||||
|
if [ "$ENABLE_CONSOLE_CUSTOM" != "" ]; then
|
||||||
|
CONSOLE_FLAGS="$CONSOLE_FLAGS custom"
|
||||||
|
fi
|
||||||
|
if [ "$CONSOLE_FLAGS" != "" ]; then
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
cscli console enable$CONSOLE_FLAGS
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Register bouncers via secrets (Swarm only)
|
## Register bouncers via secrets (Swarm only)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue