Advertisement
mightyroot

Nginx Cookies-module Patch

Aug 29th, 2012
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #!/bin/sh
  2. cd /usr/ports/www/nginx
  3. fetch https://github.com/kyprizel/testcookie-nginx-module/tarball/master
  4. mv master testcookie-nginx-module.tar.gz
  5. tar zxf testcookie-nginx-module.tar.gz
  6. make deinstall
  7. mv kyprizel-testcookie-nginx-module* testcookie-nginx-module && perl -i -pe 'print "--add-module=/usr/ports/www/nginx/testcookie-nginx-module \\\n" if $. == 226' Makefile
  8. make install
  9. /usr/local/etc/rc.d/nginx restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement