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"