nginx: use block inreplace

Closes #149.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Dominyk Tiller 2016-04-07 23:33:55 +01:00
parent 9b217f90de
commit 8f3102d679

View file

@ -32,8 +32,10 @@ class Nginx < Formula
def install
# Changes default port to 8080
inreplace "conf/nginx.conf", "listen 80;", "listen 8080;"
inreplace "conf/nginx.conf", " #}\n\n}", " #}\n include servers/*;\n}"
inreplace "conf/nginx.conf" do |s|
s.gsub! "listen 80;", "listen 8080;"
s.gsub! " #}\n\n}", " #}\n include servers/*;\n}"
end
pcre = Formula["pcre"]
openssl = Formula["openssl"]