Last active
May 19, 2019 05:53
-
-
Save changx03/2929828f24787735e74a10f0b10ac404 to your computer and use it in GitHub Desktop.
Vagrant provision web bash
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
#!/bin/bash | |
echo "Starting Provision:" $1 | |
sudo apt-get update | |
sudo apt-get install -y nginx | |
sudo nginx -t | |
sudo touch /var/www/html/index.html | |
echo "<h1>Hello " $1 "</h1>" >> /var/www/html/index.html | |
echo "Provision " $1 " completed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment