Skip to content

Instantly share code, notes, and snippets.

View tolemac's full-sized avatar

Javier Ros tolemac

View GitHub Profile
@tolemac
tolemac / install.sh
Last active January 18, 2018 13:34 — forked from ikennaokpala/install.sh
install nginx with ngx_lua automatically under debian/ubuntu like system
#!/bin/bash
set -e
NGX_VER="1.12.2"
NDK_VER="0.3.0"
NGX_LUA_VER="0.10.11"
LUAJIT_VER="2.0.5"
LUAROCKS_VER="2.4.3"
WORKDIR=$(pwd)
NGX_INSTALL_DIR="/etc/nginx"
if ! [ -e "nginx-${NGX_VER}.tar.gz" ]; then