Initial commit.

This commit is contained in:
Darren 'Tadgy' Austin 2023-09-30 17:45:44 +01:00
commit e34a2333a7
32 changed files with 309 additions and 3 deletions

2
etc/cron.daily/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
makewhatis
shadow

9
etc/cron.daily/warn-git-status Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
source /etc/mail.conf "git-status" || exit 1
CONFIGSTATUS="$(cd / && git status | egrep -ve "^(On branch|Your branch|No commits|nothing|$)" -e "\(use")"
[[ -z "$CONFIGSTATUS" ]] && exit 0
mailx "${MAILX_ARGS[@]}" -r "$EMAIL_FROM" -s "git statuses" "${EMAIL_TO[@]}" <<<"$CONFIGSTATUS"