Add user message about domain/ip and hosts file.

This commit is contained in:
opi 2016-04-27 09:59:27 +02:00
parent 6802e648f7
commit 474bd42d5c

13
ynh-dev
View file

@ -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