Initial commit.
This commit is contained in:
commit
3d665e5e11
72 changed files with 3200 additions and 0 deletions
3
base-files/cron.daily/update-slackpkg-template
Executable file
3
base-files/cron.daily/update-slackpkg-template
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
slackpkg -batch=on -default_answer=y generate-template "$HOSTNAME" >/dev/null
|
||||
9
base-files/cron.daily/warn-git-status
Executable file
9
base-files/cron.daily/warn-git-status
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
source /etc/mail.conf "etc-git" || exit 1
|
||||
|
||||
cd /etc
|
||||
|
||||
OUTPUT="$(git status | egrep -ve "^(On branch|Your branch|No commits|nothing|$)" -e "\(use")"
|
||||
|
||||
[[ ! -z "$OUTPUT" ]] && mailx "${MAILX_ARGS[@]}" -r "$EMAIL_FROM" -s "/etc git status" "${EMAIL_TO[@]}" <<< "$OUTPUT"
|
||||
Loading…
Add table
Add a link
Reference in a new issue