Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Sep 23rd, 2013  |  syntax: Bash  |  size: 0.26 KB  |  views: 3  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
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
clone this paste RAW Paste Data