From e1c7c089549c6f50f2bb2d383982f04cb982686c Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Fri, 10 Nov 2023 00:59:32 -0500 Subject: [PATCH] Fixes edge-case with assumeyes functionality Signed-off-by: Darshit Chanpura --- .../opensearch/security/tools/InstallDemoConfiguration.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/opensearch/security/tools/InstallDemoConfiguration.java b/src/main/java/org/opensearch/security/tools/InstallDemoConfiguration.java index dcb488421d..76899846a7 100644 --- a/src/main/java/org/opensearch/security/tools/InstallDemoConfiguration.java +++ b/src/main/java/org/opensearch/security/tools/InstallDemoConfiguration.java @@ -39,6 +39,7 @@ */ public final class InstallDemoConfiguration { private static boolean assumeyes = false; + private static boolean installDemoCertificates = false; private static boolean initsecurity = false; private static boolean cluster_mode = false; private static int skip_updates = -1; @@ -173,6 +174,9 @@ private static void gatherUserInputs() { cluster_mode = confirmAction(scanner, "Enable cluster mode?"); } } + } else { + initsecurity = true; + cluster_mode = true; } }