Skeleton contracts / contracts (pull_request) Canceled after 0s
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
11 lines
405 B
Bash
11 lines
405 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
if [ "$(id -u)" = 0 ]; then
|
|
install -o postgres -g postgres -m 0600 /run/secrets/postgres.key /var/lib/postgresql/data/server.key
|
|
install -o postgres -g postgres -m 0644 /run/secrets/postgres.crt /var/lib/postgresql/data/server.crt
|
|
install -o postgres -g postgres -m 0644 /run/secrets/ca.crt /var/lib/postgresql/data/ca.crt
|
|
fi
|
|
|
|
exec /usr/local/bin/docker-entrypoint.sh "$@"
|