mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2024-11-05 11:48:42 +00:00
Merge pull request #7 from Crispy1975/hotfix/path-test
Hotfix/path test
This commit is contained in:
commit
b1370b9c56
@ -108,6 +108,12 @@ else
|
||||
cp -r $CACHE_DIR/bin/* $BUILD_DIR/nginx/
|
||||
fi
|
||||
|
||||
# Update the PATH
|
||||
mkdir -p $BUILD_DIR/.profile.d
|
||||
cat > $BUILD_DIR/.profile.d/nginx.sh <<"EOF"
|
||||
export PATH="$PATH:$HOME/nginx"
|
||||
EOF
|
||||
|
||||
cd $CUR_DIR
|
||||
|
||||
|
||||
@ -115,7 +121,7 @@ cd $CUR_DIR
|
||||
if [ -f $BUILD_DIR/nginx.conf.erb ] ; then
|
||||
echo "-----> using user provided nginx.conf.erb"
|
||||
cp $BUILD_DIR/nginx.conf.erb $BUILD_DIR/nginx/nginx.conf.erb
|
||||
rm $BUILD_DIR/nginx.conf.erb
|
||||
#rm $BUILD_DIR/nginx.conf.erb
|
||||
|
||||
# ...else, force default file
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user