1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-11-23 09:33:06 +00:00
buildpack-nginx/bin/compile

20 lines
365 B
Plaintext
Raw Normal View History

2013-08-17 06:41:19 +00:00
#!/usr/bin/env bash
set -e
apt-get update
apt-get -y install nginx
BINDIR=$(dirname "$0")
if [[ ! -f $1/nginx.conf.erb ]]; then
2014-02-02 13:54:06 +00:00
cp $BINDIR/../conf/nginx.conf.erb $1/nginx.conf.erb
2013-08-17 06:41:19 +00:00
fi
if [[ ! -f $1/mime.types ]]; then
cp $BINDIR/../conf/mime.types $1/mime.types
fi
2014-02-02 13:54:06 +00:00
if [[ -e $1/${CUSTOM_BUILD:-custom-build} ]]; then
$1/${CUSTOM_BUILD:-custom-build}
fi