2017-02-04 10:06:42 +00:00
|
|
|
#!/bin/sh -x
|
2017-02-01 08:38:03 +00:00
|
|
|
# eotk (c) 2017 Alec Muffett
|
|
|
|
|
|
|
|
# if you lack homebrew, see: http://brew.sh/homebrew-nginx/
|
|
|
|
|
2017-02-04 10:13:38 +00:00
|
|
|
brew update || exit 1
|
|
|
|
brew upgrade || exit 1
|
|
|
|
|
|
|
|
: install tor and openssl
|
|
|
|
brew install openssl tor
|
|
|
|
|
2017-02-04 10:06:42 +00:00
|
|
|
: do not worry if the next step fails
|
|
|
|
brew unlink nginx
|
2017-02-04 10:13:38 +00:00
|
|
|
|
|
|
|
: go for the full nginx
|
2017-02-01 08:38:03 +00:00
|
|
|
brew tap homebrew/nginx
|
|
|
|
brew install nginx-full --with-subs-filter-module --with-headers-more-module
|
2017-02-04 10:13:38 +00:00
|
|
|
|
2017-02-04 18:02:38 +00:00
|
|
|
: prioritise a sane openssl
|
|
|
|
|
|
|
|
BREW_OPENSSL=/usr/local/opt/openssl/bin/openssl
|
|
|
|
|
|
|
|
if [ -f $BREW_OPENSSL ] ; then
|
|
|
|
( cd opt.d ; ln -s $BREW_OPENSSL )
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2017-02-04 10:13:38 +00:00
|
|
|
exit 0
|