small hackery to make it work with sudo correctly

On 13 Feb 2014, at 12:24, rilian <notifications@github.com> wrote:

> In packages/nginx.rb:
> 
> > @@ -1,11 +1,26 @@
> > -package :nginx do
> > -  apt 'nginx' do
> > -    pre :install, ['aptitude update']
> > +package :nginx_apt do
> > +  apt_list    = '/etc/apt/sources.list.d/nginx.list'
> > +  apt_source  = "deb http://nginx.org/packages/ubuntu/ precise nginx\n"
> > +
> > +  push_text apt_source, apt_list, sudo: true do
> > +    pre :install, 'true && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ABF5BD827BD9BF62'
> true && ?
> 
> —
> Reply to this email directly or view it on GitHub.
>