Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- echo "Updating web directory."
- export GIT_WORK_TREE=/www/gitrepo
- export GIT_DIR=/www/gitrepo/.git
- export GIT_REPO=/home/git/repositories/repo.git
- cd $GIT_WORK_TREE
- echo "Web directory is"
- echo $GIT_WORK_TREE
- sudo -u www-data /usr/bin/git pull $GIT_REPO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement