From: Bruno C. <Bru...@hp...> - 2007-02-18 11:59:05
|
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? 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. Bruno. -- Linux Profession Lead EMEA / Open Source Evangelist \ HP C&I EMEA IET http://www.mondorescue.org / HP/Intel Solution Center \ http://hpintelco.net Des infos sur Linux? http://www.HyPer-Linux.org http://www.hp.com/linux La musique ancienne? http://www.musique-ancienne.org http://www.medieval.org |