Skip to content

Commit e098ae3

Browse files
committed
revert: changes to create_api_user
1 parent cf17368 commit e098ae3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

applications/accounts/scripts/create_api_user.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ set -e
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"

applications/accounts/scripts/kc-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)"
2323
else
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 \

0 commit comments

Comments
 (0)