Pipe "yes" to apt-get install nginx so that nginx installation doesn't fail

rtd2
Mark Sandstrom 2011-05-05 14:40:13 +08:00 committed by Eric Holscher
parent f3ef5bd48b
commit f016e75fd2
1 changed files with 1 additions and 2 deletions

View File

@ -4,9 +4,8 @@ script "Install Nginx" do
echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main" > /etc/apt/sources.list.d/nginx.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
apt-get update
apt-get install nginx
yes yes | apt-get install nginx
EOH
ignore_failure true
not_if "nginx -V |grep 1.0"
end