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

Re: moving confflie to another location

>> "DJ" == Dan Jacobowitz <drow@false.org> writes:

DJ> On Sun, Jul 05, 1998 at 06:05:25PM -0700, Joey Hess wrote:

>> 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

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

Ok, I've made a perlscript to handle this. Seems to work as
expected. Maybe someone else finds it useful.


Attachment: movefile
Description: Binary data

Reply to: