-
-
Save fgrehm/1b4025f65a66bdbccc12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo ls > /dev/null | |
provider=virtualbox | |
sudo rm -rf .vagrant/machines/default/*/cache | |
banner() { | |
msg=$1 | |
echo | |
echo | |
echo '--------------------------------' | |
echo "-- ${msg}" | |
} | |
vagrant destroy -f | |
vagrant up --provider=${provider} --no-provision | |
banner "First provision ${provider}" | |
time vagrant provision | |
banner 'Cleanup' | |
vagrant destroy -f | |
vagrant up --provider=${provider} --no-provision | |
banner "-- Second provision ${provider}" | |
time vagrant provision |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment