ansible-role-etckeeper/templates/post-commit-mail.j2

10 lines
320 B
Django/Jinja

#!/bin/bash
HOSTNAME=`hostname --fqdn`
MAILTO={{ etckeeper_mailto }}
# (echo "Diffstat:" ; git show | diffstat ; echo -e "\nDiff:" ; \
# git show | filterdiff -x '**/*shadow*' -x '**/*.key' -x '**/private/*' ) \
# | mail -s "etckeeper $HOSTNAME" $MAILTO
git show --stat | mail -s "etckeeper $HOSTNAME" $MAILTO