projects
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reorganize postfix/email role; drop meta/main.yml dependencies as they interact badly...
[ansible.git]
/
roles
/
email
/
files
/
check-for-local-mail
diff --git a/roles/email/files/check-for-local-mail
b/roles/email/files/check-for-local-mail
new file mode 100644
(file)
index 0000000..
4f70a66
--- /dev/null
+++ b/
roles/email/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