chore(vault): check for error file
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
62cba67259
commit
0ba5c1954b
1 changed files with 10 additions and 8 deletions
|
|
@ -179,14 +179,16 @@ spec:
|
||||||
aws s3 cp --endpoint ${AWS_ENDPOINT} /opt/openreplay/vault_creds.txt s3://${VAULT_BUCKET}/vault/
|
aws s3 cp --endpoint ${AWS_ENDPOINT} /opt/openreplay/vault_creds.txt s3://${VAULT_BUCKET}/vault/
|
||||||
exit 0
|
exit 0
|
||||||
} || {
|
} || {
|
||||||
(cat /opt/openreplay/err.txt | grep -i "vault is already initialized") && {
|
[[ -f /opt/openreplay/err.txt ]] && {
|
||||||
cat /opt/openreplay/err.txt
|
(cat /opt/openreplay/err.txt | grep -i "vault is already initialized") && {
|
||||||
echo vault already initialized
|
cat /opt/openreplay/err.txt
|
||||||
exit 0
|
echo vault already initialized
|
||||||
} || {
|
exit 0
|
||||||
echo Unknown error
|
} || {
|
||||||
cat /opt/openreplay/err.txt
|
echo Unknown error
|
||||||
exit 2
|
cat /opt/openreplay/err.txt
|
||||||
|
exit 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} || {
|
} || {
|
||||||
echo vault not yet initialized;
|
echo vault not yet initialized;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue