[test] Journalisation d'un test complet avec envois de mail en cas d'erreurs
This commit is contained in:
parent
8171455f4b
commit
7b8cfaea67
2 changed files with 37 additions and 10 deletions
17
test.sh
Executable file
17
test.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
MSG=$(/usr/scripts/lc_ldap/test.py --mail | grep -v OK$)
|
||||
TO="roots@crans.org"
|
||||
#TO="samir@crans.org"
|
||||
FROM="respbats@crans.org"
|
||||
SUBJECT="Erreur dans les tests lc_ldap sur la base de test"
|
||||
if [ -n "$MSG" ]; then
|
||||
sendmail "$TO" << EOF
|
||||
From: $FROM
|
||||
To: $TO
|
||||
Subject: $SUBJECT
|
||||
|
||||
$MSG
|
||||
.
|
||||
EOF
|
||||
fi;
|
Loading…
Add table
Add a link
Reference in a new issue