On 07/24/14 17:17, Supriya Uppalapati wrote:
>
> I did like this using file_line resource
> file_line { 'replace a line to /home/infauser/.bash_profile':
> path => '/home/infauser/.bash_profile',
> line => 'export INFA_CODEPAGENAME=UTF-8',
> #match => '^# export INFA_CODEPAGENAME=UTF-8.*',*
Your "match" regexp must match the line *both* before *and* after
the change.
I.e.,
match => 'export INFA_CODEPAGENAME=UTF-8',
will probably work. If .bash_profile doesn't have that line yet, it
is added.
HTH,
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email:
jsc...@acm.org