Guest User

Untitled

a guest
May 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. # crontab -u git -l
  2. */5 * * * * /home/git/aq3/cron.sh >> /home/git/aq3/log/cron.log
  3. # cat /home/git/aq3/cron.sh
  4. #!/bin/sh
  5. # vim:set et sts=4 ts=4 tw=80:
  6. echo "================================================="
  7. echo "== Started: `date`"
  8. echo "================================================="
  9. cd /home/git/aq3
  10. rake sshkeys:export
  11. mv /tmp/authorized_keys /home/git/.ssh/
  12. chown git /home/git/.ssh/authorized_keys
  13. chmod 600 /home/git/.ssh/authorized_keys
  14. rake git:pull
  15. echo "================================================="
  16. echo "== Ended: `date`"
  17. echo "================================================="
  18. echo
  19. #
Add Comment
Please, Sign In to add comment