mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-07-27 11:21:42 +08:00
fix: set ssl config to off or on
This commit is contained in:
+2
-2
@@ -125,9 +125,9 @@ if [[ -n ${PG_OLD_VERSION} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${PSQL_SSLMODE} == disable ]]; then
|
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
|
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
|
fi
|
||||||
|
|
||||||
# Change DSM from `posix' to `sysv' if we are inside an lx-brand container
|
# Change DSM from `posix' to `sysv' if we are inside an lx-brand container
|
||||||
|
|||||||
Reference in New Issue
Block a user