From 28316a48f4881f073ae9006f1b92f55a5f2d495f Mon Sep 17 00:00:00 2001 From: Tim Stewart Date: Sun, 19 Jul 2015 04:34:30 -0400 Subject: [PATCH] start: maybe change DSM config in postgresql.conf --- start | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/start b/start index ef273e3..b83061f 100755 --- a/start +++ b/start @@ -51,6 +51,12 @@ if [[ ${PSQL_SSLMODE} == disable ]]; then sed 's/ssl = true/#ssl = true/' -i ${PG_CONFDIR}/postgresql.conf 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 cat >> ${PG_CONFDIR}/postgresql.conf <