Skip to content

Commit

Permalink
fix(pgpool2-bitnami-compat): update etc handling ; add coreutils (#35537
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wojciechka authored Nov 29, 2024
1 parent b619b8f commit 151f81d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions pgpool2-4.5.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: pgpool2-4.5
version: 4.5.5
epoch: 1
epoch: 2
description: Middleware that works between PostgreSQL servers and a PostgreSQL database client.
copyright:
- license: BSD-3-Clause AND MIT
Expand Down Expand Up @@ -69,6 +69,7 @@ subpackages:
- pgpool2-bitnami-compat=${{package.full-version}}
runtime:
- busybox
- coreutils
- openldap
- postgresql-client
pipeline:
Expand Down Expand Up @@ -98,16 +99,21 @@ subpackages:
ln -s "/usr/bin/${bin}" "${{targets.contextdir}}/opt/bitnami/pgpool/bin/${bin}"
done
# copy etc to pgpool/etc
mkdir -p "${{targets.contextdir}}/opt/bitnami/pgpool/etc"
cp -pr "${{targets.destdir}}/etc/pgpool2/." "${{targets.contextdir}}/opt/bitnami/pgpool/etc/"
# copy etc to pgpool/etc.default
mkdir -p "${{targets.contextdir}}/opt/bitnami/pgpool/etc.default"
cp -pr "${{targets.destdir}}/etc/pgpool2/." "${{targets.contextdir}}/opt/bitnami/pgpool/etc.default/"
# link postgres binaries to /opt/bitnami/postgresql/bin
mkdir -p "${{targets.contextdir}}/opt/bitnami/postgresql/bin"
for bin in \
pg_dump pg_dumpall pg_restore psql \
; do
ln -s "/usr/bin/${bin}" "${{targets.contextdir}}/opt/bitnami/postgresql/bin/${bin}"
done
# symlink /etc/pgpool2 as /opt/bitnami/pgpool/etc
ln -s /etc/pgpool2 "${{targets.contextdir}}/opt/bitnami/pgpool/etc"
test:
environment:
contents:
Expand Down

0 comments on commit 151f81d

Please sign in to comment.