Skip to content
Snippets Groups Projects
Commit 7be39c81 authored by Florent Thiery's avatar Florent Thiery
Browse files

add initial email test refs #20590

parent 1d4f84b8
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Copyright 2017, Florent Thiery
# envoyer un mail contenant un truc random
echo "This is a test email" | mail -s "Test email from `cat /etc/hostname`" deployment@ubicast.eu
sleep 10
tail -n 10 /var/log/mail.log | grep bounced
if [ $? -na 0 ]; then
echo "Sending mail failed"
exit 1
fi
exit 0
# check un webservice qui recoit le mail
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment