add possibility to add detectror expert email for per-detector
authormkrzewic <mikolaj.krzewicki@cern.ch>
Tue, 14 Oct 2014 08:30:04 +0000 (10:30 +0200)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Tue, 14 Oct 2014 08:30:04 +0000 (10:30 +0200)
notifications

PWGPP/QA/scripts/runQA.example.config
PWGPP/QA/scripts/runQA.sh

index 2b18a99..e2388fa 100644 (file)
@@ -23,6 +23,10 @@ ocdbStorage="raw://"
 #email to
 MAILTO="fbellini@cern.ch"
 
+#email detector experts
+MAILTO_TPC="marian.ivanov@cern.ch"
+MAILTO_T0="alla.maevskaia@cern.ch"
+
 #alien user name
 alienUserName="mkrzewic"
 
index 7b28105..bf228a3 100755 (executable)
@@ -332,6 +332,10 @@ updateQA()
 executePlanB()
 {
   #in case of emergency
+  #first check if we have the email of the detector expert defined,
+  #if yes, append to the mailing list
+  local detExpertEmailVar="MAILTO_${detector}"
+  [[ -n "${!detExpertEmailVar}" ]] && MAILTO+=" ${!detExpertEmailVar}"
   if [[ -n ${MAILTO} ]]; then 
     echo
     echo "trouble detected, sending email to ${MAILTO}"