Guest User

Untitled

a guest
Oct 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. sudo yum update -y
  4. cd /var/www/html/
  5. #Update git repo and checkout the appropriate branch
  6. if [ -r /var/www/html/.git/HEAD ]; then
  7. su -s /bin/sh apache -c "git remote rm origin"
  8. su -s /bin/sh apache -c "git remote add origin git@github.com:lensnetllc/direct-lens.git"
  9. su -s /bin/sh apache -c "git pull origin master"
  10. su -s /bin/sh apache -c "git checkout master"
  11. fi
Add Comment
Please, Sign In to add comment