Skip to content

Instantly share code, notes, and snippets.

@RichardStyles
Last active September 22, 2015 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardStyles/374289743a11c1e49261 to your computer and use it in GitHub Desktop.
Save RichardStyles/374289743a11c1e49261 to your computer and use it in GitHub Desktop.
Vagrant bootstrap
#!/usr/bin/env bash
echo "Starting Bootstrap"
echo "Running update..."
yum update
echo "Installing requirements.."
yum -y install httpd php
echo "setup HTML dir"
rm -rf /var/www/html
### Vagrant using rsync which creates this folder /home/vagrant/sync
ln -fs /home/vagrant/sync /var/www/html
echo "Starting services..."
systemctl start httpd
echo "Bootstrap complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment