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