From 043f43a05fc04813e1bee23f846b1f9bf4cb01a4 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Fri, 4 Nov 2022 11:58:26 +0100 Subject: [PATCH] fix(helm): vault init script Skip if vault already initailized Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay/files/vault.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay/files/vault.sh b/scripts/helmcharts/openreplay/files/vault.sh index 8a38a9fab..1529ad6ac 100644 --- a/scripts/helmcharts/openreplay/files/vault.sh +++ b/scripts/helmcharts/openreplay/files/vault.sh @@ -18,7 +18,7 @@ vault_output=$(vault operator init) 2> /tmp/err.txt || { echo "Vault already initialized." err_code=0 } - echo exit $err_code + exit $err_code } # Writting output to a file