diff --git a/create-vhost.sh b/create-vhost.sh index f71c2bb..7ab8196 100755 --- a/create-vhost.sh +++ b/create-vhost.sh @@ -10,9 +10,14 @@ function success { currentdir=`pwd` -echo -echo "= APPLICATION CONFIGURATION =" -echo + + +who=`whoami` +if [ "$who" = "vagrant" ] +then + error "This script is supposed to be run from the host, not from the guest" + exit 1 +fi # Checking whether /etc/hosts file exists if [ ! -f "/etc/hosts" ] @@ -25,6 +30,11 @@ else fi +echo +echo "= APPLICATION CONFIGURATION =" +echo + + # Checking Vagrant root path echo while true