[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
editfiles bug?
From: |
Hanuš Adler |
Subject: |
editfiles bug? |
Date: |
Wed, 29 Aug 2001 09:20:04 +0200 |
User-agent: |
Mutt/1.2.5i |
hello,
I have this recipe which is working differently on Solaris 7 and Solaris
8. I suppose it is a bug. See comments:
editfiles:
postfixslaves::
{ /etc/postfix/main.cf
# This following part works on Solaris 7 but
# not on Solaris 8 (on exactly the same file)
# When run with -v, it says something like it cannot
# locate line matching "# relayhost.*". I have tried lots
# similar regular expressions but none has worked.
BeginGroupIfNoLineMatching "^relayhost.*"
LocateLineMatching "# relayhost.*"
InsertLine "relayhost = [172.26.190.11]"
EndGroup
# For Solaris 8 I had to add this workaround:
AppendIfNoSuchLine "relayhost = [172.26.190.11]"
DefineClasses "ReloadPostfix"
}
Unfortunately, not being a C programmer, I am unable to find the cause.
Regards,
Hanus Adler
--
One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them.
- editfiles bug?,
Hanuš Adler <=