Щербацевич-БПИ2302-на 3

This commit is contained in:
2026-11-27 21:28:16 +03:00
parent 20afc2c790
commit bd3a530df3
119 changed files with 10026 additions and 18 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -eu
mkdir -p /tmp/tls /openbao/data
cp /certs/openbao.crt /tmp/tls/server.crt
cp /certs/openbao.key /tmp/tls/server.key
chmod 644 /tmp/tls/server.crt
chmod 600 /tmp/tls/server.key
if id openbao >/dev/null 2>&1; then
chown -R openbao:openbao /tmp/tls /openbao/data
if command -v su-exec >/dev/null 2>&1; then
exec su-exec openbao bao server -config=/openbao/config/config.hcl
fi
if command -v gosu >/dev/null 2>&1; then
exec gosu openbao bao server -config=/openbao/config/config.hcl
fi
fi
exec bao server -config=/openbao/config/config.hcl