[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LocateLineMatching not working correctly
From: |
Peter Weilbacher |
Subject: |
LocateLineMatching not working correctly |
Date: |
Thu, 7 Dec 2000 19:52:08 +0100 (CET) |
Hi,
I just tried a script for a SuSE Linux machine which used to be
working ok with 1.5.4 with 1.6.0.a11 and now 1.6.0, but
LocateLineMatching does not seem to be working correctly.
I do
editfiles:
{ /etc/rc.config
LocateLineMatching 'USE_KERNEL_NFSD'
ReplaceLineWith 'USE_KERNEL_NFSD=no'
LocateLineMatching 'USE_NIS_FOR_AUTOFS'
ReplaceLineWith 'USE_NIS_FOR_AUTOFS=yes'
}
in cf.linux and
# grep USE_KERNEL_NFSD /etc/rc.config
USE_KERNEL_NFSD="no"
gives the expected result. But cfengine -v says
cfengine:host: Begin editing /etc/rc.config
Edit: Search for USE_KERNEL_NFSD failed. Current line still 1
cfengine:host: LocateLineMatchingRegexp failed in /etc/rc.config, aborting
editing
cfengine:host: End editing /etc/rc.config
I do not see why?! Probably a bug...
Greetings,
Peter.
- LocateLineMatching not working correctly,
Peter Weilbacher <=