Initial commit.
This commit is contained in:
parent
6720861726
commit
e34a2333a7
32 changed files with 309 additions and 3 deletions
2
etc/cron.daily/.gitignore
vendored
Normal file
2
etc/cron.daily/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
makewhatis
|
||||
shadow
|
9
etc/cron.daily/warn-git-status
Executable file
9
etc/cron.daily/warn-git-status
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue