Last active
May 30, 2018 21:15
-
-
Save scottcrawford03/ed87e60c6ee88d7897822b0023858f69 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
#!/bin/bash | |
echo "updating and installing apache" | |
sudo apt-get update | |
sudo apt-get install -y apache2 | |
sudo chown -R `whoami`:`id -gn` /var/www/html | |
sudo apt-get install git | |
echo "making proj" | |
mkdir ~/proj | |
cd ~/proj | |
git init --bare | |
cat > hooks/post-receive <<EOF | |
#!/bin/bash | |
git --work-tree=/var/www/html --git-dir=/home/demo/proj checkout -f | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment