commit 1bde20237a0eb528ec87bfb3e6c74ad1b5dd9ec2 parent 03a6701bb5a50518c3773b646ae0ebd03b237e78 Author: Andreas Gruhler <andreas.gruhler@adfinis.com> Date: Wed, 10 Jul 2024 00:45:55 +0200 fix(vault-tls): bao tls dir Diffstat:
M | hcl/default/vault-tls/templates/vault-tls.sh.tmpl | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/hcl/default/vault-tls/templates/vault-tls.sh.tmpl b/hcl/default/vault-tls/templates/vault-tls.sh.tmpl @@ -1,8 +1,8 @@ #!/usr/bin/env sh # -# Script to replace Vault API certificates +# Script to replace bao API certificates # -# Run with Vault API domain name as first parameter. +# Run with bao API domain name as first parameter. # Example: ./vault-tls.sh vault.example.com set -o errexit @@ -12,10 +12,10 @@ set -o xtrace {{- $host := env "node.unique.name" }} # copy certificate files -sudo cp -f /etc/letsencrypt/live/$1/fullchain.pem /etc/vault.d/tls/{{ $host }}.pem -sudo cp -f /etc/letsencrypt/live/$1/privkey.pem /etc/vault.d/tls/{{ $host }}.key +sudo cp -f /etc/letsencrypt/live/$1/fullchain.pem /opt/openbao/tls/{{ $host }}.pem +sudo cp -f /etc/letsencrypt/live/$1/privkey.pem /opt/openbao/tls/{{ $host }}.key -# change ownership for vault -sudo chown vault:vault /etc/vault.d/tls/{{ $host }}* +# change ownership for bao +sudo chown openbao: /opt/openbao/tls/{{ $host }}* -sudo pkill -HUP vault +sudo pkill -HUP openbao