Merge pull request #4 from piranha/master

Custom build instructions
This commit is contained in:
rhy-jot 2014-02-18 17:42:15 -08:00
commit 974176770f
1 changed files with 5 additions and 1 deletions

View File

@ -7,9 +7,13 @@ apt-get -y install nginx
BINDIR=$(dirname "$0")
if [[ ! -f $1/nginx.conf.erb ]]; then
cp $BINDIR/../conf/nginx.conf.erb $1/nginx.conf.erb
cp $BINDIR/../conf/nginx.conf.erb $1/nginx.conf.erb
fi
if [[ ! -f $1/mime.types ]]; then
cp $BINDIR/../conf/mime.types $1/mime.types
fi
if [[ -e $1/${CUSTOM_BUILD:-custom-build} ]]; then
$1/${CUSTOM_BUILD:-custom-build} "$@"
fi