install-nginx-linux.sh 461 B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. scriptroot="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4. reporoot="$(dirname "$(dirname "$scriptroot")")"
  5. nginxinstall="$reporoot/.tools/nginx"
  6. curl -sSL http://nginx.org/download/nginx-1.14.2.tar.gz --retry 5 | tar zxfv - -C /tmp && cd /tmp/nginx-1.14.2/
  7. ./configure --prefix=$nginxinstall --with-http_ssl_module --without-http_rewrite_module
  8. make
  9. make install
  10. echo "##vso[task.prependpath]$nginxinstall/sbin"