From 474bd42d5c1e68e9bf068c89cf51da1447362dee Mon Sep 17 00:00:00 2001 From: opi Date: Wed, 27 Apr 2016 09:59:27 +0200 Subject: [PATCH] Add user message about domain/ip and hosts file. --- ynh-dev | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ynh-dev b/ynh-dev index 439a5bd..e1b6678 100755 --- a/ynh-dev +++ b/ynh-dev @@ -105,6 +105,19 @@ elif [ "$1" = "run" ]; then VERSION=$3 fi + if [ "$VERSION" = "stable" ]; then + IP="192.168.33.80" + elif [ "$VERSION" = "testing" ]; then + IP="192.168.33.81" + elif [ "$VERSION" = "unstable" ]; then + IP="192.168.33.82" + fi + + echo "Creating $DOMAIN virtual machine with YunoHost $VERSION version" + echo "" + echo "/!\ Please add '$IP $DOMAIN' to your /etc/hosts file /!\\" + echo "" + vagrant up $VERSION vagrant ssh $VERSION