[ic] Changing RPM install hostname...
Jason Balicki
interchange-users@interchange.redhat.com
Tue Oct 23 21:29:00 2001
Jason Balicki wrote:
> [Snipped some stuff with me asking about changing the hostname in an RPM
install.]
Sometimes all it takes is to make an idiot out of yourself by mailing
a message to a lot of people.
I found it in the interchange-demo rpm. I'm putting it here so if
someone else needs to find it they can search in the archives:
You can change an RPM install hostname in interchange by doing something
like this:
perl -pi -e "s/$OLD_HOSTNAME/$NEW_HOSTNAME/g" \
/var/lib/interchange/foundation/catalog.cfg \
/var/lib/interchange/foundation/products/*.txt \
/var/lib/interchange/foundation/products/*.asc \
/var/lib/interchange/foundation/config/* \
/var/www/html/foundation/index.html
Yup, ripped right from the rpm, youbetcha.
I haven't tested this yet, but it should work. I think. Don't blame
me if it doesn't. :)
Somehow, I missed the *.asc files when I was trying to change them by
hand.
--Jason Balicki
Sr. Network Engineer
ASI Computers, Maryland Heights, MO