mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2024-12-27 06:15:25 +00:00
commit
974176770f
@ -7,9 +7,13 @@ apt-get -y install nginx
|
|||||||
BINDIR=$(dirname "$0")
|
BINDIR=$(dirname "$0")
|
||||||
|
|
||||||
if [[ ! -f $1/nginx.conf.erb ]]; then
|
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
|
fi
|
||||||
|
|
||||||
if [[ ! -f $1/mime.types ]]; then
|
if [[ ! -f $1/mime.types ]]; then
|
||||||
cp $BINDIR/../conf/mime.types $1/mime.types
|
cp $BINDIR/../conf/mime.types $1/mime.types
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -e $1/${CUSTOM_BUILD:-custom-build} ]]; then
|
||||||
|
$1/${CUSTOM_BUILD:-custom-build} "$@"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user