projects
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add postfix and journalwatch roles
[ansible.git]
/
roles
/
postfix
/
files
/
check-for-local-mail
diff --git a/roles/postfix/files/check-for-local-mail
b/roles/postfix/files/check-for-local-mail
new file mode 100644
(file)
index 0000000..
4f70a66
--- /dev/null
+++ b/
roles/postfix/files/check-for-local-mail
@@ -0,0
+1,8
@@
+#!/bin/bash
+exists() {
+ [ -e "$1" ]
+}
+
+if exists /var/mail/*; then
+ echo "There is mail for some users in /var/mail!"
+fi