ltcp/aufgabe4/cron.daily/git-log-rotate

8 lines
152 B
Bash
Executable File

#!/bin/bash
set -e
cd /var/log
find . -iname \*.log | xargs git add
git commit --all --message "daily autocommit"
git push --force origin master:logs