[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strange BeginGroupIfNoLineMatching/InsertFile behaviour
From: |
Atom Powers |
Subject: |
Re: strange BeginGroupIfNoLineMatching/InsertFile behaviour |
Date: |
Fri, 3 Mar 2006 08:22:55 -0800 |
On 3/3/06, Atom Powers <atom.powers@gmail.com> wrote:
> I had a possibly similar problem where it wouldn't let me use
> "InsertFile" and the simple "Append" actions in the same block.
>
> But these work for me:
>
> { # SNMP config
> /usr/local/etc/snmp/snmpd.conf
> AutoCreate
> EmptyEntireFilePlease
> InsertFile "${FileSource}/common/templates/snmpd.conf"
> BeginGroupIfNoLineContaining "syscontact ${sysadm}"
> DeleteLinesContaining "syscontact"
> Append "syscontact ${sysadm}"
> EndGroup
> DefineClasses "newsnmpd"
> }
Although on reflection, it should never enter this group, since my
template has that line in it already. So I can't really vouch for this
block.
--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--