prole/prole-db/prole-db-entrypoint.sh
chrisfu da2f6600ba feat: infrastructure and installer updates for k3s, OpenTofu, and prole-db
- Add k3s start/stop Ansible playbooks and roles.

- Implement OpenTofu initialization scripts and k8s manifests.

- Update ncurses installer with OpenTofu support and improved k3s integration.

- Add mode support (--mode) to etc/ initialization scripts.

- Update prole-db with recovery, barman objectstore, and SSH OpenBao support.

- Refine k8s manifests for OpenBao and prole-db.
2026-02-05 21:27:18 -08:00

18 lines
614 B
Bash

#!/usr/bin/env bash
set -Eeuo pipefail
if [[ -x /usr/local/bin/prole-db-ssh-openbao.sh ]]; then
/usr/local/bin/prole-db-ssh-openbao.sh || true
fi
# If user runs the default "postgres" command, optionally force pg_tde preload.
if [[ "${1:-}" == "postgres" ]] && [[ "${ENABLE_PG_TDE:-}" == "1" ]]; then
# Only inject if user didn't already set shared_preload_libraries explicitly
if ! printf '%q ' "$@" | grep -q "shared_preload_libraries"; then
set -- "$@" -c "shared_preload_libraries=pg_tde"
fi
fi
# Delegate everything else to the official entrypoint
exec /usr/local/bin/docker-entrypoint.sh "$@"