Skip to content

Commit 8c39f88

Browse files
committedJun 5, 2019
Make the code check a bit happier
1 parent 128583e commit 8c39f88

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed
 

‎.ci/travis/linux/docker-compose.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
context: ../../../tests/testdata
77
environment:
88
- 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
1010
- SSL_CERT_FILE=/etc/ssl/certs/localhost_ssl_cert.pem
1111
- SSL_KEY_FILE=/etc/ssl/private/localhost_ssl_key.pem
1212
- SSL_CA_FILE=/etc/ssl/certs/chains_subissuer-issuer-root_issuer2-root2.pem

‎tests/testdata/temp/setup-ssl.sh

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,22 @@ chown -R postgres /tmp/ssl-copy
1717
rm -r /etc/ssl
1818
mv /tmp/ssl-copy /etc/ssl
1919

20-
# Needed under debian, wasnt needed under ubuntu
20+
# Needed under debian, was not needed under ubuntu
2121
mkdir -p ${PGSTAT_TMP}
2222
chmod 0777 ${PGSTAT_TMP}
2323

24+
{
2425
# 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)"
3233
fi
33-
#echo "ssl_crl_file = ''" >> $CONF
34+
#echo "ssl_crl_file = ''"
35+
} >> $CONF
3436

3537
# Put lock file to make sure conf was not reinitialized
3638
touch ${SETUP_LOCKFILE}

0 commit comments

Comments
 (0)
Please sign in to comment.