blob: cdfdb1c9ad9b76eab6e11f541d3979436f0a635f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/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_port@/'${vpn_port}'/g' \
-e 's/@hostname@/'${hostname}'/g' \
"${cfg_srcdir}/hostvpn.conf.in"
|