#!/usr/bin/env bash source /env-data.sh # This script will setup necessary configuration to enable replications # Refresh configuration in case environment settings changed. cat $CONF.template > $CONF # This script will setup necessary configuration to optimise for PostGIS and to enable replications cat >> $CONF <> /etc/sysctl.conf echo "kernel.shmall=2097152" >> /etc/sysctl.conf