From a34c6c5ad6be524df05af15844a3cde93f915721 Mon Sep 17 00:00:00 2001 From: Alexander Solovyov Date: Sun, 2 Feb 2014 15:54:06 +0200 Subject: [PATCH] support custom building --- bin/compile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/compile b/bin/compile index 82302ab..f779cfd 100755 --- a/bin/compile +++ b/bin/compile @@ -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