File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ if test "${MFBASE_POSTGRESQL_FLAG}" = "1"; then
47
47
fi
48
48
rm -f "/tmp/initdb_pwfile.$$"
49
49
50
- sed -i '/^max_connections = 100*/^#max_connections (default 100) is set in included file (see below)/' ${MFBASE_POSTGRESQL_DATA_DIR}/postgresql.conf
51
50
echo "include '${MFMODULE_RUNTIME_HOME}/tmp/config_auto/postgresql.conf'" >>${MFBASE_POSTGRESQL_DATA_DIR}/postgresql.conf
52
51
PG_HBA="${MFBASE_POSTGRESQL_DATA_DIR}/pg_hba.conf"
53
52
cat >${PG_HBA} <<EOF
Original file line number Diff line number Diff line change 21
21
fi
22
22
{% endblock %}
23
23
24
+ {% block custom %}
25
+ # Comment line "max_connections = " as it is now provided from config in ${MFMODULE_RUNTIME_HOME}/tmp/config_auto/postgresql.conf
26
+ grep '^max_connections =' ${MFBASE_POSTGRESQL_DATA_DIR}/postgresql.conf >/dev/null 2>&1
27
+ if test $? -eq 0; then
28
+ sed -i 's/^max_connections = */#max_connections (default 100) is set in included file (see below)/' ${MFBASE_POSTGRESQL_DATA_DIR}/postgresql.conf
29
+ fi
30
+ {% endblock %}
31
+
You can’t perform that action at this time.
0 commit comments