Permalink
Browse files

Fix Nginx configure script: it didn't correctly change back the orgin…

…al working directory after compilation.
  • Loading branch information...
1 parent d79f57f commit 2529146ca77f9e8a9147121ffb12c2f2d072da80 @FooBarWidget FooBarWidget committed Dec 11, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 ext/nginx/config
View
@@ -2,12 +2,14 @@ if ! test -f "$ngx_addon_dir/../common/libpassenger_common.a" || \
! test -f "$ngx_addon_dir/../common/libboost_oxt.a"; then
echo "*** The Phusion Passenger support files are not yet compiled. Compiling them for you... ***"
echo "*** Running 'rake nginx RELEASE=yes' in $ngx_addon_dir... ***"
+ old_dir=`pwd`
if ! cd $ngx_addon_dir; then
exit 1
fi
if ! rake nginx RELEASE=yes; then
exit 1
fi
+ cd "$old_dir"
echo "*** Phusion Passenger support files have been successfully compiled. ***"
fi

0 comments on commit 2529146

Please sign in to comment.