Fixing the createvhost script
This commit is contained in:
parent
9729e7830e
commit
2426d9c407
1 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue