From: Bryan G. <Bry...@HP...> - 2007-02-18 15:37:46
|
FYI, On Sun, Feb 18, 2007 at 12:57:23PM +0100, Bruno Cornec wrote: > Mayes, Lee said on Sat, Feb 17, 2007 at 05:54:36PM -0500: > > > It's not possible with the current code, but you can override this by pointing the variable $deffile in lib/LinuxCOE.pm to any absolute path (that's the first place it looks, which is current /opt/SystemDesigner/4). It's kind of a chicken-egg problem, I'll think on it some. Needless to say, a roll of LinuxCOE.pm would point it back to default, but at least your file wouldn't get overwritten. Perhaps we should stop shipping linuxcoe.rc and rename it to linuxcoe.rc.example or something? Okay, per suggestions above and below, have fixed new admin guide, and made current installer preserve existing copy (yet still deliver a NEW-linuxcoe.rc) in the proper directory for manaul merging. > 1/ That's where packaging is also helping as it saves the old config > file > 2/ For mondo I have resolved to provide a fixed config file named > /etc/mindi/mindi.conf.dist (in case of pkg, /usr/local/etc otherwise) > and reads a potentially empty /etc/mindi/mindi.conf in addition which > can overrides the values by new ones. > > I even md5sum /etc/mindi/mindi.conf.dist to check it didn't changed sinc > install, so that I'm sure that I have the minimum set of functions > required. Sorry this is shell code, so not sharable like that for a perl > based project, but the idea should be reusable in itself. bryang |