From a68b58aefe0d3100f60bb7d71c107fa7c1d41cdf Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Mon, 23 Nov 2015 22:25:23 +0530 Subject: [PATCH] fix: set `ssl` config to `off` or `on` --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 669acda..ed106d6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -125,9 +125,9 @@ if [[ -n ${PG_OLD_VERSION} ]]; then fi if [[ ${PSQL_SSLMODE} == disable ]]; then - sudo -Hu ${PG_USER} sed -i "s|^[#]*[ ]*ssl = .*|ssl = false|" ${PG_CONFDIR}/postgresql.conf + sudo -Hu ${PG_USER} sed -i "s|^[#]*[ ]*ssl = .*|ssl = off|" ${PG_CONFDIR}/postgresql.conf else - sudo -Hu ${PG_USER} sed -i "s|^[#]*[ ]*ssl = .*|ssl = true|" ${PG_CONFDIR}/postgresql.conf + sudo -Hu ${PG_USER} sed -i "s|^[#]*[ ]*ssl = .*|ssl = on|" ${PG_CONFDIR}/postgresql.conf fi # Change DSM from `posix' to `sysv' if we are inside an lx-brand container