[3051] in SIPB_Linux_Development

home help back first fref pref prev next nref lref last post

Re: Post install script

daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Fri Oct 6 16:16:22 2000

Date: Fri, 6 Oct 2000 16:16:12 -0400 (EDT)
Message-Id: <200010062016.QAA10001@speaker-for-the-dead.mit.edu>
To: Derek Atkins <warlord@MIT.EDU>
Cc: Alex Coventry <alex_c@MIT.EDU>, Linux-Dev <linux-dev@MIT.EDU>
In-Reply-To: "[3050] in SIPB_Linux_Development"
From: Jonathon Weiss <jweiss@MIT.EDU>


alex_c>$ROOT/bin/sed	-e "s/localhost.localdomain/$HOSTNAME/" \
alex_c>		-e "s/PUBLIC=false/PUBLIC=false/"  \
alex_c>		-e "s/ADDR=/ADDR=$ADDR/" \
alex_c>		-e "s/HOST=/HOST=$HOSTNAME/" \
alex_c>		-e "s/MACHINE=i[3456]86/MACHINE=$MACHINE/"  \
alex_c>		$ROOT/etc/athena/rc.conf > /tmp/rc.conf

Having the 1st and 4th lines written the way they are seems dangerous.
Perhaps the 3rd and 4th linse should onlt do the substitution if the
variables are empty.

warlord>   PS: Why is AFSCLIENT added by the post-install instead of put in by
warlord>   athena-base?  Perhaps this is a question for 'bugs'?

Actually looking at the spec file, I have every reason to beleive that
the post-install part of the athean-afs package is adding these.  If
not that is a bug.  Either way if the SIPB post-install is going to
add them, it needs to make sure to do so only if they aren't already
in the file.

-- 

	Jonathon

home help back first fref pref prev next nref lref last post