[fix] Don't delete /etc/hosts content

This commit is contained in:
ljf (zamentur) 2017-01-23 11:24:22 +01:00 committed by GitHub
parent a5384ae047
commit 685f5781cf

View file

@ -162,7 +162,7 @@ elif [ "$1" = "run" ]; then
IP=$(grep "$IP_LINE" Vagrantfile | sed "s/${IP_LINE}//") IP=$(grep "$IP_LINE" Vagrantfile | sed "s/${IP_LINE}//")
IP=${IP::-1} IP=${IP::-1}
echo "/!\ Please add '$IP $DOMAIN' to your /etc/hosts file /!\\" echo "/!\ Please add '$IP $DOMAIN' to your /etc/hosts file /!\\"
echo "sudo sh -s 'echo \"$IP $DOMAIN\" > /etc/hosts'" echo "sudo sh -s 'echo \"$IP $DOMAIN\" >> /etc/hosts'"
echo "" echo ""
# Log into the VM # Log into the VM