File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -447,9 +447,31 @@ for BOUNCER in $(compgen -A variable | grep -i BOUNCER_KEY); do
447
447
fi
448
448
done
449
449
450
- if [ " $ENABLE_CONSOLE_MANAGEMENT " != " " ]; then
450
+ # # Enable console features
451
+ if [ " $ENABLE_CONSOLE_ALL " != " " ]; then
451
452
# shellcheck disable=SC2086
452
- cscli console enable console_management
453
+ cscli console enable -a
454
+ else
455
+ CONSOLE_FLAGS=" "
456
+ if [ " $ENABLE_CONSOLE_MANAGEMENT " != " " ]; then
457
+ CONSOLE_FLAGS=" $CONSOLE_FLAGS console_management"
458
+ fi
459
+ if [ " $ENABLE_CONSOLE_CONTEXT " != " " ]; then
460
+ CONSOLE_FLAGS=" $CONSOLE_FLAGS context"
461
+ fi
462
+ if [ " $ENABLE_CONSOLE_TAINTED " != " " ]; then
463
+ CONSOLE_FLAGS=" $CONSOLE_FLAGS tainted"
464
+ fi
465
+ if [ " $ENABLE_CONSOLE_MANUAL " != " " ]; then
466
+ CONSOLE_FLAGS=" $CONSOLE_FLAGS manual"
467
+ fi
468
+ if [ " $ENABLE_CONSOLE_CUSTOM " != " " ]; then
469
+ CONSOLE_FLAGS=" $CONSOLE_FLAGS custom"
470
+ fi
471
+ if [ " $CONSOLE_FLAGS " != " " ]; then
472
+ # shellcheck disable=SC2086
473
+ cscli console enable$CONSOLE_FLAGS
474
+ fi
453
475
fi
454
476
455
477
# # Register bouncers via secrets (Swarm only)
You can’t perform that action at this time.
0 commit comments