sighup
This commit is contained in:
parent
a11947c5e7
commit
949cf77c4e
2 changed files with 2 additions and 3 deletions
|
@ -9,5 +9,5 @@ data:
|
|||
echo "Starting sidecar listener on port 8080..."
|
||||
while true; do
|
||||
echo -e "HTTP/1.1 200 OK\n\nSIGHUP sent to OpenBAO" | nc -l -p 8080
|
||||
kill -SIGHUP $(pidof bao) || echo "OpenBAO process not found"
|
||||
kill $(pidof bao) || echo "OpenBAO process not found"
|
||||
done
|
||||
|
|
|
@ -24,7 +24,7 @@ server:
|
|||
subPath: passwd
|
||||
- name: logrotate2
|
||||
image: alpine:latest
|
||||
command: ["/bin/sh", "-c", "sleep infinity"]
|
||||
command: ["/bin/sh", "-c", "/tmp/sidecar.sh"]
|
||||
securityContext:
|
||||
runAsUser: 100
|
||||
ports:
|
||||
|
@ -74,7 +74,6 @@ server:
|
|||
echo $(grep "Unseal Key 5:" /tmp/init.txt | awk '{print $NF}')| cat > /openbao/data/unseal_key5.txt
|
||||
bao login $(grep "Initial Root Token:" /tmp/init.txt | awk '{print $NF}')
|
||||
rm /tmp/init.txt
|
||||
# bao audit enable file file_path=stdout
|
||||
bao audit enable -path="file" file file_path=/openbao/logs/openbao/openbao.log
|
||||
ui:
|
||||
enabled: true
|
||||
|
|
Loading…
Reference in a new issue