- From: AJ Christensen <
>
- To: chef <
>
- Subject: [chef] Re: Appending to an existing file, i.e nginx site
- Date: Tue, 19 Mar 2013 09:24:48 +1300
Sorry for my initial reply.
Please don't edit files that already exist. Please never do this.
If you really must:
http://community.opscode.com/cookbooks/line
https://github.com/opscode/chef/blob/master/lib/chef/util/file_edit.rb
http://augeas.net/
Hope this helps, thanks in advance, and please use the mailing list
search functionality next time before posting a new thread.
Cheers,
AJ
On 15 March 2013 20:20, Marcelo de Moraes Serpa
<
>
wrote:
>
Hi list,
>
>
I have a use case where I need to append a location to an existing nginx
>
site (in /etc/nginx/sites-enabled/sitename), this site was also deployed by
>
another recipe of mine.
>
>
Why? Well, basically it's a static site componente that should be accessed
>
as a path, but the main app should remain intact. They *should share the
>
same domain*.
>
>
I should be pretty straightforward to do, but I'd like to know if anyone
>
else had a similar use case before? If so, how did you approach it?
>
>
Thanks in advance!
>
>
M>
Archive powered by MHonArc 2.6.16.