forked from mtusi2026/mtusi2026lab7
Щербацевич-БПИ2302-на 3
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user