mirror of
https://github.com/bitwarden/self-host.git
synced 2026-06-27 22:05:45 +00:00
BRE-1893 fix(marketplace): guard setup wizard against non-interactive shells (#520)
This commit is contained in:
@@ -4,6 +4,11 @@
|
|||||||
# Runs once on first interactive login to select the deployment edition.
|
# Runs once on first interactive login to select the deployment edition.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Don't run the interactive wizard in a non-interactive session
|
||||||
|
if [ ! -t 0 ] || [ ! -t 1 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@@ -30,7 +35,7 @@ cat <<'EOF'
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -rp " Enter selection [1 or 2]: " SELECTION
|
read -rp " Enter selection [1 or 2]: " SELECTION || exit 0
|
||||||
case "$SELECTION" in
|
case "$SELECTION" in
|
||||||
1)
|
1)
|
||||||
EDITION="standard"
|
EDITION="standard"
|
||||||
|
|||||||
Reference in New Issue
Block a user