Merge "Add the new hostname to /etc/hosts in prepare_node"
This commit is contained in:
commit
f28fcbfe30
@ -31,6 +31,11 @@ forward-zone:
|
||||
EOF
|
||||
|
||||
sudo hostname $HOSTNAME
|
||||
if ! grep -q $HOSTNAME /etc/hosts
|
||||
then
|
||||
echo "127.0.1.1 $HOSTNAME" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
# Fedora image doesn't come with wget
|
||||
if [ -f /usr/bin/yum ]; then
|
||||
sudo yum -y install wget
|
||||
|
Loading…
Reference in New Issue
Block a user