mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 19:44:33 +00:00
- 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.
18 lines
614 B
Bash
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 "$@"
|