From 685f5781cffa5f943a4c6dfa90caf4b85ff17999 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Mon, 23 Jan 2017 11:24:22 +0100 Subject: [PATCH] [fix] Don't delete /etc/hosts content --- ynh-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ynh-dev b/ynh-dev index 9c9e930..c75f442 100755 --- a/ynh-dev +++ b/ynh-dev @@ -162,7 +162,7 @@ elif [ "$1" = "run" ]; then IP=$(grep "$IP_LINE" Vagrantfile | sed "s/${IP_LINE}//") IP=${IP::-1} 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 "" # Log into the VM