# #!/bin/bash # check if VirtualBox is installed dpkg -l | grep virtualbox > /dev/null if [ $? -ne 0 ] then echo "VirtualBox must be installed for this script" exit 1 fi # check if vagrant is installed vagrant --version >/dev/null 2>/dev/null if [ $? -ne 0 ] then echo "Vagrant must be installed for this script" exit 2 fi # check for the sambaxp.tar.gz if [ ! -f ./sambaxp.tar.gz ] then echo "You must copy the file sambaxp.tar.gz to the " echo "same directory as the install.bash file. " exit 3 fi # unpack the file with all config-files # inside the actual directory vagrant init aalmenar/debian-9 tar xvf sambaxp.tar.gz cd sambaxp # Pull the Box from the cloud #mv Vagrantfile-sambaxp Vagrantfile # Start all VMs vagrant up