From e958ec3e79cb99940a38c29eddfc2b385af7d49f Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 28 Oct 2022 13:42:21 -0400 Subject: [PATCH] Squashed 'spiffworkflow-backend/' changes from 4d7e5e531..32e0c6c1a 32e0c6c1a use script dir so you can run this script from anywhere git-subtree-dir: spiffworkflow-backend git-subtree-split: 32e0c6c1a18e8d188bd4d6023354640ca008721a --- bin/start_keycloak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/start_keycloak b/bin/start_keycloak index 6b605e5f4..002c2668a 100755 --- a/bin/start_keycloak +++ b/bin/start_keycloak @@ -31,7 +31,8 @@ docker run \ -Dkeycloak.profile.feature.token_exchange=enabled \ -Dkeycloak.profile.feature.admin_fine_grained_authz=enabled -cp bin/spiffworkflow-realm.json /tmp/spiffworkflow-realm.json +script_dir="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" +cp "${script_dir}/spiffworkflow-realm.json" /tmp/spiffworkflow-realm.json spiff_subdomain="unused-for-local-dev" perl -pi -e "s/{{SPIFF_SUBDOMAIN}}/${spiff_subdomain}/g" /tmp/spiffworkflow-realm.json docker cp /tmp/spiffworkflow-realm.json keycloak:/tmp