File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ services:
6
6
context : ../../../tests/testdata
7
7
environment :
8
8
- ALLOW_IP_RANGE="172.18.0.0/16"
9
- # The following files are added in Dopckerfile -postgis
9
+ # The following files are added in Dockerfile -postgis
10
10
- SSL_CERT_FILE=/etc/ssl/certs/localhost_ssl_cert.pem
11
11
- SSL_KEY_FILE=/etc/ssl/private/localhost_ssl_key.pem
12
12
- SSL_CA_FILE=/etc/ssl/certs/chains_subissuer-issuer-root_issuer2-root2.pem
Original file line number Diff line number Diff line change @@ -17,20 +17,22 @@ chown -R postgres /tmp/ssl-copy
17
17
rm -r /etc/ssl
18
18
mv /tmp/ssl-copy /etc/ssl
19
19
20
- # Needed under debian, wasnt needed under ubuntu
20
+ # Needed under debian, was not needed under ubuntu
21
21
mkdir -p ${PGSTAT_TMP}
22
22
chmod 0777 ${PGSTAT_TMP}
23
23
24
+ {
24
25
# moved from setup.sh
25
- echo " ssl = true" >> $CONF
26
- # echo "ssl_ciphers = 'DEFAULT:!LOW:!EXP:!MD5:@STRENGTH' " >> $CONF
27
- # echo "ssl_renegotiation_limit = 512MB " >> $CONF
28
- echo " ssl_cert_file = '${SSL_CERT_FILE} '" >> $CONF
29
- echo " ssl_key_file = '${SSL_KEY_FILE} '" >> $CONF
30
- if [ ! -z " ${SSL_CA_FILE} " ]; then
31
- echo " ssl_ca_file = '${SSL_CA_FILE} ' # (change requires restart)" >> $CONF
26
+ echo " ssl = true"
27
+ # echo "ssl_ciphers = 'DEFAULT:!LOW:!EXP:!MD5:@STRENGTH' "
28
+ # echo "ssl_renegotiation_limit = 512MB " >>
29
+ echo " ssl_cert_file = '${SSL_CERT_FILE} '"
30
+ echo " ssl_key_file = '${SSL_KEY_FILE} '"
31
+ if [ -n " ${SSL_CA_FILE} " ]; then
32
+ echo " ssl_ca_file = '${SSL_CA_FILE} ' # (change requires restart)"
32
33
fi
33
- # echo "ssl_crl_file = ''" >> $CONF
34
+ # echo "ssl_crl_file = ''"
35
+ } >> $CONF
34
36
35
37
# Put lock file to make sure conf was not reinitialized
36
38
touch ${SETUP_LOCKFILE}
You can’t perform that action at this time.
0 commit comments