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

This commit is contained in:
Gideon Caranzo authored and Stian Thorgersen committed 2018-10-12 09:43:41 +02:00
1 parent c71f6e2188
commit 0e8d79bbfb
1 file changed
+1 -1
@@ -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;