Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 23rd, 2013  |  syntax: Bash  |  size: 0.26 KB  |  views: 2  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/sh
  2. echo "Updating web directory."
  3. export GIT_WORK_TREE=/www/gitrepo
  4. export GIT_DIR=/www/gitrepo/.git
  5. export GIT_REPO=/home/git/repositories/repo.git
  6. cd $GIT_WORK_TREE
  7. echo "Web directory is"
  8. echo $GIT_WORK_TREE
  9. sudo -u www-data /usr/bin/git pull $GIT_REPO