Skip to content

Commit 42ec9c3

Browse files
committed
Make force_ssl.sh more robust
Starting with PG 18, PGDATA points to /var/lib/postgresql/MAJOR/docker docker-library/postgres#1259 Using the environment variable, the script works with all DB versions. Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent 0837998 commit 42ec9c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

33
# force ssl
4-
cp /tmp/pg_hba.conf /var/lib/postgresql/data/pg_hba.conf
4+
cp /tmp/pg_hba.conf ${PGDATA}/pg_hba.conf

0 commit comments

Comments
 (0)