1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-11-23 01:23:06 +00:00
buildpack-nginx/bin/compile
2013-08-16 23:44:22 -07:00

16 lines
277 B
Bash

#!/usr/bin/env bash
set -e
apt-get update
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
fi
if [[ ! -f $1/mime.types ]]; then
cp $BINDIR/../conf/mime.types $1/mime.types
fi