nginx: use block inreplace
Closes #149. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
9b217f90de
commit
8f3102d679
1 changed files with 4 additions and 2 deletions
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue