Skip to content

Flags for console features #3457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions docker/docker_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,31 @@ for BOUNCER in $(compgen -A variable | grep -i BOUNCER_KEY); do
fi
done

if [ "$ENABLE_CONSOLE_MANAGEMENT" != "" ]; then
## Enable console features
if [ "$ENABLE_CONSOLE_ALL" != "" ]; then
# 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

## Register bouncers via secrets (Swarm only)
Expand Down