Enterprise-Onion-Toolkit/000-setup-osx.sh

32 wiersze
566 B
Bash
Czysty Zwykły widok Historia

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/
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
: go for the full nginx
2017-02-01 08:38:03 +00:00
brew tap homebrew/nginx
2017-02-06 18:51:30 +00:00
brew install \
nginx-full \
--with-subs-filter-module \
--with-headers-more-module
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
exit 0