mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2025-01-13 12:26:22 +00:00
Check for existence of nginx.conf.sigil for Dokku 0.5.0+
This commit is contained in:
parent
afa0a94343
commit
3a20517687
@ -122,7 +122,12 @@ cd $CUR_DIR
|
|||||||
if [ -f $BUILD_DIR/nginx.conf.erb ] ; then
|
if [ -f $BUILD_DIR/nginx.conf.erb ] ; then
|
||||||
echo "-----> using user provided nginx.conf.erb"
|
echo "-----> using user provided nginx.conf.erb"
|
||||||
cp $BUILD_DIR/nginx.conf.erb $BUILD_DIR/nginx/nginx.conf.erb
|
cp $BUILD_DIR/nginx.conf.erb $BUILD_DIR/nginx/nginx.conf.erb
|
||||||
#rm $BUILD_DIR/nginx.conf.erb
|
|
||||||
|
# Dokku 0.5.0+ uses nginx.conf.sigil for customizing the
|
||||||
|
# Nginx configuration, so let's check if it exists
|
||||||
|
if [ -f $BUILD_DIR/nginx.conf.sigil ] ; then
|
||||||
|
echo "-----> using user provided nginx.conf.sigil"
|
||||||
|
cp $BUILD_DIR/nginx.conf.sigil $BUILD_DIR/nginx/nginx.conf.sigil
|
||||||
|
|
||||||
# ...else, force default file
|
# ...else, force default file
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user