mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-05 13:00:22 +08:00
Merge pull request #36 from timclassic/master
start: maybe change DSM config in postgresql.conf
This commit is contained in:
@@ -51,6 +51,12 @@ if [[ ${PSQL_SSLMODE} == disable ]]; then
|
|||||||
sed 's/ssl = true/#ssl = true/' -i ${PG_CONFDIR}/postgresql.conf
|
sed 's/ssl = true/#ssl = true/' -i ${PG_CONFDIR}/postgresql.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Change DSM from `posix' to `sysv' if we are inside an lx-brand container
|
||||||
|
if [[ $(uname -v) == "BrandZ virtual linux" ]]; then
|
||||||
|
sed 's/\(dynamic_shared_memory_type = \)posix/\1sysv/' \
|
||||||
|
-i ${PG_CONFDIR}/postgresql.conf
|
||||||
|
fi
|
||||||
|
|
||||||
# listen on all interfaces
|
# listen on all interfaces
|
||||||
cat >> ${PG_CONFDIR}/postgresql.conf <<EOF
|
cat >> ${PG_CONFDIR}/postgresql.conf <<EOF
|
||||||
listen_addresses = '*'
|
listen_addresses = '*'
|
||||||
|
|||||||
Reference in New Issue
Block a user