You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install 384B

123456789101112131415161718
  1. #! /usr/bin/env sh
  2. dir="$(dirname $(readlink -f "${0}"))"
  3. cp "${dir}/git-backup" /usr/local/bin &&
  4. if [ ! -f /etc/git-backup.conf ]
  5. then
  6. cp "${dir}/git-backup.conf" /etc/git-backup.conf
  7. fi &&
  8. if [ ! -f /etc/cron.d/git-backup ]
  9. then
  10. echo "00 2 * * * root /usr/local/bin/git-backup > /dev/null" > /etc/cron.d/git-backup &&
  11. service cron reload
  12. fi &&
  13. git-backup --init