Skip to content
Snippets Groups Projects

bsauto: let the run continue with the holiday schedule check

Merged Ben Morrice requested to merge bsautohol into master
1 file
+ 1
3
Compare changes
  • Side-by-side
  • Inline
+ 1
3
@@ -173,12 +173,10 @@ function do_check_holidays {
if [ $YEAR -ne `/bin/date +%Y` ]; then
HOLIDAY_MESSAGE="The holiday schedule appears to have not yet been been updated yet for `/bin/date +%Y`. Please update the CERN holidays in the \$HOLIDAY and \$YEAR variables of the bsauto script.\n\nHappy new year!"
if [ ! -z $NOMAD_ALLOC_ID ]; then
WARNING="******************************\n*** Manual action required ***\n******************************\n\n"
do_admin_email "C7X: Holiday schedule error: automation stopped" "$WARNING$HOLIDAY_MESSAGE"
do_admin_email "C7X: Holiday schedule update required" "$HOLIDAY_MESSAGE"
else
echo $HOLIDAY_MESSAGE
fi
exit 1
fi
# Check if it's Christmas (16th Dec - 6th Jan)
Loading