Re: moving confflie to another location
Martin Bialasinski wrote:
> I am squashing the bugs in the xisp package. Report 12773 asks to move a
> conffile from /etc/options.xisp to /etc/ppp/options.xisp.
> This sounds reasonable. To handle upgrading from an old version, is it enough
> to move the file in preinst?
Here's what I put in the preinst of xaw-wrappers to move a conffile. I'm not
sure if the use of cat is required, but I have gotten no reports of this not
if [ ! -e /etc/X11/xaw-wrappers.conf -a -e /etc/xaw-wrappers.conf ]; then
# Move conffile. I think it's safest to use cat here, becuase
# the user may have done something funky like made it be a sumlink.
cat /etc/xaw-wrappers.conf > /etc/X11/xaw-wrappers.conf
rm -f /etc/xaw-wrappers.conf
see shy jo
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com