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