From e0ea96159921ee911f272089836d6c3be12bb28e Mon Sep 17 00:00:00 2001 From: mposolda Date: Fri, 23 Oct 2020 10:52:27 +0200 Subject: [PATCH] KEYCLOAK-16049 Running './kc.sh --profile=prod' still uses dev profile --- .../runtime/src/main/java/org/keycloak/cli/MainCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quarkus/runtime/src/main/java/org/keycloak/cli/MainCommand.java b/quarkus/runtime/src/main/java/org/keycloak/cli/MainCommand.java index fb2675796b..70a7fb0c3c 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/cli/MainCommand.java +++ b/quarkus/runtime/src/main/java/org/keycloak/cli/MainCommand.java @@ -56,8 +56,8 @@ public class MainCommand { @Option(names = "--profile", arity = "1", description = "Set the profile. Use 'dev' profile to enable development mode.", scope = CommandLine.ScopeType.INHERIT) public void setProfile(String profile) { - System.setProperty("kc.profile", "dev"); - System.setProperty("quarkus.profile", "dev"); + System.setProperty("kc.profile", profile); + System.setProperty("quarkus.profile", profile); } @Option(names = "--config-file", arity = "1", description = "Set the path to a configuration file.", paramLabel = "", scope = CommandLine.ScopeType.INHERIT)