[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: moving confflie to another location



On Sun, Jul 05, 1998 at 06:05:25PM -0700, Joey Hess wrote:
> 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
> working.
> 
> 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
> fi
> rm -f /etc/xaw-wrappers.conf

Except, if the user has decided to make it a symlink, wouldn't it make
more sense to just rename the symlink?  Otherwise, I'd get really
confused if my /export/configs/X11/xaw-wrappers.conf for example
suddenly got disconnected from /etc/{X11/,}xaw-wrappers.conf .

Dan


--  
To UNSUBSCRIBE, email to debian-mentors-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: