compass-core/vagrant/launch.sh
Xicheng Chang ea07256545 Make launch.sh idempotent
Change-Id: I9b3f989397c4c36ab3717d1cca84841778881186
2015-05-04 12:00:42 -07:00

15 lines
287 B
Bash
Executable File

#!/bin/bash
#
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
if [ -f $HOME/VirtualBox\ VMs/compass-server ];then
mkdir -p $HOME/VirtualBox VMs/compass-server
fi
if [ "$1" == "--recreate" ]; then
source destroy.sh
source first_run.sh
else
source run.sh
fi