summaryrefslogtreecommitdiff
path: root/public/fs/etc/nginx/nginx-conf.sh
blob: 10a88c6c5e334bd5119d81523fd4fc2ec062736e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -eu

hostzone="$1"

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

sed -e 's/@hostzone@/'"${hostzone}"'/g' \
	"${cfg_srcdir}/nginx.conf.in"