File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
applications/accounts/scripts Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2121/opt/keycloak/bin/kcadm.sh create users -s " username=$USERNAME " -s enabled=True
2222/opt/keycloak/bin/kcadm.sh set-password --username " $USERNAME " --new-password " $PASSWORD "
2323/opt/keycloak/bin/kcadm.sh add-roles --uusername " $USERNAME " --rolename admin
24+
25+ echo " API user created successfully"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if [ -n "$API_PASSWORD" ] && /opt/keycloak/bin/kcadm.sh config credentials \
2121 echo " Successfully authenticated as $API_USERNAME "
2222 echo " Startup scripts not needed (admin_api user already exists)"
2323else
24- echo " admin_api user does not exist or authentication failed. Authenticating as bootstrap admin to create/update the user..."
24+ echo " admin_api user does not exist or authentication failed. Authenticating as bootstrap admin to create the user..."
2525
2626 # Authenticate as bootstrap admin to create admin_api user
2727 if ! /opt/keycloak/bin/kcadm.sh config credentials \
You can’t perform that action at this time.
0 commit comments