X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/0aacb9f875a40b18dfbbc01b705b5337bf872368..a0ef97a3169e9da8b4618116075d54c49b4292b4:/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 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