KEYCLOAK-7989 Running server config migration fails due the Hostname SPI
This commit is contained in:
parent
01af40413e
commit
a63676ce93
2 changed files with 6 additions and 6 deletions
|
@ -440,10 +440,10 @@ if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/s
|
|||
end-if
|
||||
|
||||
# Migrate from 4.2.0 to 4.3.0
|
||||
if (outcome == failed) of /subsystem=keycloak-server/spi=hostname/:read-resource
|
||||
if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:read-resource
|
||||
echo Adding spi=hostname...
|
||||
/subsystem=keycloak-server/spi=hostname/:add(default-provider=request)
|
||||
/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true)
|
||||
/profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:add(default-provider=request)
|
||||
/profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true)
|
||||
echo
|
||||
end-if
|
||||
|
||||
|
|
|
@ -397,10 +397,10 @@ if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/
|
|||
end-if
|
||||
|
||||
# Migrate from 4.2.0 to 4.3.0
|
||||
if (outcome == failed) of /subsystem=keycloak-server/spi=hostname/:read-resource
|
||||
if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:read-resource
|
||||
echo Adding spi=hostname...
|
||||
/subsystem=keycloak-server/spi=hostname/:add(default-provider=request)
|
||||
/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true)
|
||||
/profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:add(default-provider=request)
|
||||
/profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true)
|
||||
echo
|
||||
end-if
|
||||
|
||||
|
|
Loading…
Reference in a new issue