From ed12b0be6b41f4e86c0d2befc906039e6c3821fd Mon Sep 17 00:00:00 2001 From: Ron Hough Date: Tue, 24 Sep 2024 17:45:58 -0500 Subject: [PATCH] grafana: Fix syntax error that was causing entrypoint failure There was a bash scripting syntax error which prevented the demo script from working because the "docker compose up --wait" could not succeed. Change-Id: I7912a3373f44626d68ce8a9a95a9b8f2b91c3576 --- build/docker/grafana/config-then-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/docker/grafana/config-then-run.sh b/build/docker/grafana/config-then-run.sh index 8a4edf31eb..a33fc969b9 100755 --- a/build/docker/grafana/config-then-run.sh +++ b/build/docker/grafana/config-then-run.sh @@ -19,7 +19,7 @@ RE='(.+):\/\/([^:@]*)(:([^@]*))?@([^:\/]+)(:[0-9]+)?(\/(.+))?' # Only parse if UPSTREAM_DB_URL is not empty. # Otherwise, these parameters must be passed down from the environment. # TODO: Remove UPSTREAM_DB_URL completely when new docker images are in ECR -if [[! -z "${UPSTREAM_DB_URL}" ]; then +if [[ -n "${UPSTREAM_DB_URL}" ]]; then [[ $UPSTREAM_DB_URL =~ $RE ]] RS_DB_TYPE=${BASH_REMATCH[1]} RS_USER=${BASH_REMATCH[2]}