View difference between Paste ID: q95mySSJ and s6JyNPHx
SHOW: | | - or go back to the newest paste.
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