Skip to content

Commit

Permalink
fix openresty module support for Nginx upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Aug 1, 2014
1 parent 58af793 commit c5d7522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions inc/nginx_configure.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ if [[ "$CENTOSVER" = '6.0' || "$CENTOSVER" = '6.1' || "$CENTOSVER" = '6.2' || "$
fi

if [ "$NGINX_OPENRESTY" == 'y' ]; then
MEMCDIR=`ls -rt $DIR_TMP | grep openresty-memc-nginx-module`
SRCACHEDIR=`ls -rt $DIR_TMP | grep openresty-srcache-nginx-module`
MEMCDIR=`ls -rt $DIR_TMP | grep openresty-memc-nginx-module | tail -1`
SRCACHEDIR=`ls -rt $DIR_TMP | grep openresty-srcache-nginx-module | tail -1`
MEMCOPT=" --add-module=../${MEMCDIR}"
SRCCACHEOPT=" --add-module=../${SRCACHEDIR}"
else
Expand Down
4 changes: 0 additions & 4 deletions inc/nginx_upgrade.inc
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,7 @@ then

fi

if [ "$NGINX_OPENRESTY" == 'y' ]; then
funct_nginxmodules_openresty
else
funct_nginxmodules
fi

# Install nginx
cd $DIR_TMP
Expand Down

0 comments on commit c5d7522

Please sign in to comment.