Skip to content

Instantly share code, notes, and snippets.

@claudio4
claudio4 / build_nginx.sh
Last active December 6, 2019 19:15 — forked from Belphemur/build_nginx.sh
Compiling Nginx with LibreSSL (and http2)
#!/usr/bin/env bash
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ]; then
>&2 echo "No enough arguments provided. use ./build_nginx.sh nginx-version PCRE-version libressl-version"
exit 1
fi
# names of latest versions of each package
export NGINX_VERSION=$1
export VERSION_PCRE="pcre-$2"
export VERSION_LIBRESSL="libressl-$3"
export VERSION_NGINX=nginx-$NGINX_VERSION