Blob Blame History Raw
#!/bin/sh

set -eu

sitezone="$1"

cfg_script="$0"
cfg_srcdir=$(cd -- "${cfg_script%/*}/" ; pwd -P)

source /root/config/private/config/server.ports
source /root/config/private/config/hostinfo/${sitezone}

sed -e 's/@vpn_net4@/'${vpn_net4}'/g' \
	-e 's/@vpn_ipv4@/'${vpn_ipv4}'/g' \
	"${cfg_srcdir}/pg_hba.conf.in"