diff --git a/packages/nginx.rb b/packages/nginx.rb index 1f0c62f5ca..d80fdc2a63 100644 --- a/packages/nginx.rb +++ b/packages/nginx.rb @@ -3,9 +3,9 @@ require 'package' class Nginx < Package description 'nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.' homepage 'http://nginx.org/' - version '1.11.6-1' - source_url 'http://nginx.org/download/nginx-1.11.6.tar.gz' - source_sha256 '3153abbb518e2d9c032e1b127da3dc0028ad36cd4679e5f3be0b8afa33bc85bd' + version '1.13.3' + source_url 'https://nginx.org/download/nginx-1.13.3.tar.gz' + source_sha256 '5b73f98004c302fb8e4a172abf046d9ce77739a82487e4873b39f9b0dcbb0d72' depends_on 'pcre' @@ -17,13 +17,18 @@ class Nginx < Package def self.install system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "sudo ln -sf /usr/local/nginx/sbin/nginx /usr/local/bin/nginx" - system "echo all NGINX things are in /usr/local/nginx" - system "echo pages are in /usr/local/nginx/html" - system "echo adding bash aliases so you can easily start/stop nginx" - system "echo startnginx starts nginx and stopnginx stops nginx" system "sed -i \'/^alias startnginx/d\' ~/.bashrc" system "sed -i \'/^alias stopnginx/d\' ~/.bashrc" system "sed -i '$ a alias startnginx=\"sudo nginx\"' ~/.bashrc" system "sed -i '$ a alias stopnginx=\"sudo nginx -s quit\"' ~/.bashrc" + puts + puts "All NGINX things are in /usr/local/nginx.".lightblue + puts + puts "Pages are stored in /usr/local/nginx/html.".lightblue + puts + puts "Added bash aliases so you can easily start/stop nginx:".lightblue + puts "startnginx - starts nginx".lightblue + puts "stopnginx - stops nginx".lightblue + puts end end