This enables support for alpine-based images like timescaledb (no bash/openssl). Fixes #153 Fixes timescale/timescaledb-docker#99
11 lines
248 B
Bash
Executable File
11 lines
248 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd /var/lib/postgresql/data
|
|
|
|
cp ../certs/* .
|
|
chown postgres:postgres server.key
|
|
chmod 600 server.key
|
|
|
|
sed -i "s/^#ssl = off/ssl = on/" postgresql.conf
|
|
sed -i "s/^#ssl_ciphers =.*/ssl_ciphers = 'AES256+EECDH:AES256+EDH'/" postgresql.conf
|