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
@@ -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