Created
February 1, 2015 00:35
-
-
Save Cinderhaze/fad4460b789a8bcd67fa to your computer and use it in GitHub Desktop.
'Here's a low brow example of how to avoid provisioning twice:' via http://stackoverflow.com/questions/14265807/avoid-reprovisioning-a-vagrant-vm-if-it-is-already-provisioned
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
PROVISIONED="/some-app-dir/PROVISIONED"; | |
if [[ -f $PROVISIONED ]]; then | |
echo "Skipping provisioning"; | |
exit; | |
else | |
echo "Provisioning"; | |
fi | |
#...do provisioning things | |
touch $PROVISIONED; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment