Fixing the createvhost script

This commit is contained in:
Axel DE VIGNON 2017-09-27 15:29:43 +02:00
parent 9729e7830e
commit 2426d9c407

View file

@ -10,9 +10,14 @@ function success {
currentdir=`pwd` 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 # Checking whether /etc/hosts file exists
if [ ! -f "/etc/hosts" ] if [ ! -f "/etc/hosts" ]
@ -25,6 +30,11 @@ else
fi fi
echo
echo "= APPLICATION CONFIGURATION ="
echo
# Checking Vagrant root path # Checking Vagrant root path
echo echo
while true while true