123456789101112131415161718 |
- #! /usr/bin/env sh
-
- dir="$(dirname $(readlink -f "${0}"))"
-
- cp "${dir}/git-backup" /usr/local/bin &&
-
- if [ ! -f /etc/git-backup.conf ]
- then
- cp "${dir}/git-backup.conf" /etc/git-backup.conf
- fi &&
-
- if [ ! -f /etc/cron.d/git-backup ]
- then
- echo "00 2 * * * root /usr/local/bin/git-backup > /dev/null" > /etc/cron.d/git-backup &&
- service cron reload
- fi &&
-
- git-backup --init
|