Skip to content

Commit b66fe85

Browse files
authored
fix(install): make Enterprise startup options 2 and 3 reachable (#27363)
The Enterprise startup case statement used `1|*)` as its first arm, which matches any input because `*` is a wildcard. This made options `2` (Custom Configuration) and `3` (Skip startup) unreachable — every non-`1` input fell into the first arm and printed "Invalid choice". Split the pattern into separate `1)` and `*)` arms, matching the Core block's structure.
1 parent 73be12b commit b66fe85

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

install_influxdb.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,11 +1437,8 @@ else
14371437
STARTUP_CHOICE=${STARTUP_CHOICE:-1}
14381438

14391439
case "$STARTUP_CHOICE" in
1440-
1|*)
1440+
1)
14411441
# Quick Start - use defaults and check for existing license
1442-
if [ "$STARTUP_CHOICE" != "1" ]; then
1443-
printf "Invalid choice. Using Quick Start (option 1).\n"
1444-
fi
14451442
setup_quick_start_defaults enterprise
14461443
setup_license_for_quick_start
14471444
START_SERVICE="y"
@@ -1454,6 +1451,12 @@ else
14541451
# Skip startup
14551452
START_SERVICE="n"
14561453
;;
1454+
*)
1455+
printf "Invalid choice. Using Quick Start (option 1).\n"
1456+
setup_quick_start_defaults enterprise
1457+
setup_license_for_quick_start
1458+
START_SERVICE="y"
1459+
;;
14571460
esac
14581461

14591462
if [ "$START_SERVICE" = "y" ] && [ "$STARTUP_CHOICE" = "1" ]; then

0 commit comments

Comments
 (0)