From: Vincent Le Gallic Date: Sat, 18 Oct 2014 16:58:14 +0000 (+0200) Subject: Pour cron-verifier pot-vieux-orga ⊂ pot-vieux X-Git-Url: http://gitweb.pimeys.fr/?p=scripts-20-100.git;a=commitdiff_plain;h=60638dcf99c42f3d0524a918335e4b1f112c4e48 Pour cron-verifier pot-vieux-orga ⊂ pot-vieux --- diff --git a/mails/watch_ml_pot-vieux.sh b/mails/watch_ml_pot-vieux.sh new file mode 100755 index 0000000..882fb0b --- /dev/null +++ b/mails/watch_ml_pot-vieux.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Vérifie que la ML pot-vieux-orga est incluse dans pot-vieux +# et envoie un mail à pot.vieux@crans.org si ce n'est pas le cas + +cd ~/scripts/mails/ +result=$(./ml_in_ml.sh pot-vieux-orga pot-vieux) + +if test -n "${result}" +then + echo -e "To: pot.vieux@crans.org\nSubject: ML pot-vieux-orga non incluse dans pot-vieux\n${result}" | sendmail -t +fi