1#!/bin/sh 2 3# Used by scripts/Makefile and scripts/rebar-pre-script to create 4# the yaws.conf file 5 6set -e 7 8cat yaws.conf.template | \ 9 ./Subst %yawsdir% "$YAWSDIR" | \ 10 ./Subst %logdir% "$LOGDIR" | \ 11 ./Subst %vardir% "$VARDIR" | \ 12 ./Subst %port% $PORT | \ 13 ./Subst %docroot% "$DOCROOT" | \ 14 ./Subst %tmpdir% "${TMPDIR:-/tmp}" | \ 15 ./Subst %certdir% "$CERTDIR" | \ 16 ./Subst %sslport% $SSLPORT 17 18exit 0 19