mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
[fix] Don't delete /etc/hosts content
This commit is contained in:
parent
a5384ae047
commit
685f5781cf
1 changed files with 1 additions and 1 deletions
2
ynh-dev
2
ynh-dev
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue