openresty.sh 334 B

123456789101112
  1. #!/bin/bash
  2. RETCODE=$(fw_exists /usr/local/openresty/nginx/sbin/nginx)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_depends nginx
  5. fw_get http://openresty.org/download/ngx_openresty-1.5.8.1.tar.gz
  6. fw_untar ngx_openresty-1.5.8.1.tar.gz
  7. cd ngx_openresty-1.5.8.1
  8. ./configure --with-luajit --with-http_postgres_module
  9. make
  10. sudo make install