KEYCLOAK-8554 checked if master realm exist instead of number of realms for new installation check

This commit is contained in:
Gideon Caranzo 2018-10-11 14:32:04 -05:00 committed by Stian Thorgersen
parent c71f6e2188
commit 0e8d79bbfb

View file

@ -43,7 +43,7 @@ public class ApplianceBootstrap {
}
public boolean isNewInstall() {
if (session.realms().getRealms().size() > 0) {
if (session.realms().getRealm(Config.getAdminRealm()) != null) {
return false;
} else {
return true;