xcat-core/xCAT/postscripts/updatenetwork

6 lines
164 B
Plaintext
Raw Normal View History

. /tmp/post-install/variables.txt
echo "Updating hostname to $HOSTNAME"
sed -i "s/HOSTNAME=.*/HOSTNAME=$HOSTNAME/g" /etc/sysconfig/network
hostname $HOSTNAME