Commit 8d7d2a05 authored by Ben Fayers's avatar Ben Fayers Committed by GitHub

Change version number & add sed lines to remove old aliases.

parent f5607e07
require 'package'
class Nginx < Package
version '1.11.6'
version '1.11.6-1'
source_url 'http://nginx.org/download/nginx-1.11.6.tar.gz' # software source tarball url
source_sha1 '51903b721a5ee721568fc59f0a243df5356a98de' # source tarball sha1 sum
......@@ -19,6 +19,8 @@ class Nginx < Package
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"
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