Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # crontab -u git -l
- */5 * * * * /home/git/aq3/cron.sh >> /home/git/aq3/log/cron.log
- # cat /home/git/aq3/cron.sh
- #!/bin/sh
- # vim:set et sts=4 ts=4 tw=80:
- echo "================================================="
- echo "== Started: `date`"
- echo "================================================="
- cd /home/git/aq3
- rake sshkeys:export
- mv /tmp/authorized_keys /home/git/.ssh/
- chown git /home/git/.ssh/authorized_keys
- chmod 600 /home/git/.ssh/authorized_keys
- rake git:pull
- echo "================================================="
- echo "== Ended: `date`"
- echo "================================================="
- echo
- #
Add Comment
Please, Sign In to add comment