From c5e2a2dd0b1430ca6d8b3ea31c44c260997ab660 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 15 Mar 2020 14:17:30 +0100 Subject: [PATCH] Remove entrypoint, it's done already --- sbin/dokku-entrypoint.sh | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/sbin/dokku-entrypoint.sh b/sbin/dokku-entrypoint.sh index 741b263..3f99bcb 100755 --- a/sbin/dokku-entrypoint.sh +++ b/sbin/dokku-entrypoint.sh @@ -2,39 +2,4 @@ set -eu -o pipefail -add_user() { - set -eu - - keycloak_add_user_script="/opt/jboss/keycloak/bin/add-user-keycloak.sh" - - if $keycloak_add_user_script -r master -u "$KEYCLOAK_USER" -p "$KEYCLOAK_PASSWORD"; then - echo "=====> root user added" - else - echo "=====> Failed to add root user" - exit 1 - fi -} - -setup_root_user() { - set -eu - - keycloak_add_user_json="/opt/jboss/keycloak/standalone/configuration/keycloak-add-user.json" - - if [ ! -f "$keycloak_add_user_json" ]; then - add_user - else - if ! grep -q "$KEYCLOAK_USER" "$keycloak_add_user_json"; then - add_user - fi - fi -} - -main() { - set -eu - - setup_root_user -} - -main - /opt/jboss/tools/docker-entrypoint.sh "$@"