Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Used as a cron job script that attemps to deploy every 10 minutes
- cd /var/www/Sites/peihuishao
- git reset --hard HEAD > /dev/null
- git clean -f > /dev/null
- echo "Start update ..." >> ../update.log
- git pull >> ../update.log
- date +"-- updated done -- %F %T ---" >> ../update.log
- echo "" >> ../update.log
- cp ../update.log update.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement