]> gitweb.pimeys.fr Git - scripts-20-100.git/blob - mails/watch_ml_pot-vieux.sh
typo
[scripts-20-100.git] / mails / watch_ml_pot-vieux.sh
1 #!/bin/bash
2
3 # Vérifie que la ML pot-vieux-orga est incluse dans pot-vieux
4 # et envoie un mail à pot.vieux@crans.org si ce n'est pas le cas
5
6 cd ~/scripts/mails/
7 result=$(./ml_in_ml.sh pot-vieux-orga pot-vieux)
8
9 if test -n "${result}"
10 then
11 echo -e "To: pot.vieux@crans.org\nSubject: ML pot-vieux-orga non incluse dans pot-vieux\n${result}" | /usr/sbin/sendmail -t
12 fi