Commit fd14d1a8 authored by Ed Reel's avatar Ed Reel Committed by Kazushi (Jam) Marukawa

Update nginx from 1.11.6-1 to 1.13.3

  - Highlight help text in blue to stand out
parent 874a9f10
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment