# UN-initialises the openbao server (necessary for the new instance to spin up if the pod or container crashes) removed
This commit is contained in:
parent
1898daa4a5
commit
a772e4f9ae
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ server:
|
|||
- -c
|
||||
- |
|
||||
sleep 10
|
||||
rm -rf /openbao/data/* # UN-initialises the openbao server (necessary for the new instance to spin up if the pod or container crashes)
|
||||
rm -rf /openbao/data/*
|
||||
bao operator init >> /tmp/init.txt
|
||||
cat /tmp/init.txt | grep "Key " | awk '{print $NF}' | xargs -I{} bao operator unseal {}
|
||||
echo $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/initial_token.txt
|
||||
|
|
Loading…
Reference in a new issue