Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- sudo yum update -y
- cd /var/www/html/
- #Update git repo and checkout the appropriate branch
- if [ -r /var/www/html/.git/HEAD ]; then
- su -s /bin/sh apache -c "git remote rm origin"
- su -s /bin/sh apache -c "git remote add origin git@github.com:lensnetllc/direct-lens.git"
- su -s /bin/sh apache -c "git pull origin master"
- su -s /bin/sh apache -c "git checkout master"
- fi
Add Comment
Please, Sign In to add comment