From 0202efea3e915e5acbf7945a40d4a5412a120825 Mon Sep 17 00:00:00 2001
From: Mark <mark@openappstack.net>
Date: Fri, 10 Apr 2020 17:23:03 +0200
Subject: [PATCH] Refactor

---
 .../single-sign-on/templates/cronjob-create-oauth-clients.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helmchart/single-sign-on/templates/cronjob-create-oauth-clients.yaml b/helmchart/single-sign-on/templates/cronjob-create-oauth-clients.yaml
index 6546b89..9328083 100644
--- a/helmchart/single-sign-on/templates/cronjob-create-oauth-clients.yaml
+++ b/helmchart/single-sign-on/templates/cronjob-create-oauth-clients.yaml
@@ -52,8 +52,9 @@ spec:
             args:
             - >
               curl http://{{ $.Release.Name }}-hydra-admin:4445/health/ready \
+                  --silent \\
                   --write-out "\nCheck Hydra health: HTTP %{http_code}" \
-                  | tail -1 | grep 200 && echo "Hydra is ready to accept requests." && \
+                  | tail -1 | grep 200 && echo "Hydra is ready to accept requests." &&
               curl http://{{ $.Release.Name }}-hydra-admin:4445/clients/$CLIENT_NAME \
                   --silent \
                   --write-out "\nRequesting oauth client $CLIENT_NAME: HTTP %{http_code}\n"  \
-- 
GitLab