From 60638dcf99c42f3d0524a918335e4b1f112c4e48 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sat, 18 Oct 2014 18:58:14 +0200 Subject: [PATCH] =?utf8?q?Pour=20cron-verifier=20pot-vieux-orga=20?= =?utf8?q?=E2=8A=82=20pot-vieux?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- mails/watch_ml_pot-vieux.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 mails/watch_ml_pot-vieux.sh 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 -- 2.39.2