From 57cd7b63b23cd17db148c3e86d24272927f162a5 Mon Sep 17 00:00:00 2001 From: Ben Morrice <ben.morrice@cern.ch> Date: Mon, 4 Jan 2021 11:35:30 +0100 Subject: [PATCH] bsauto: let the run continue with the holiday schedule check --- bin/bsauto | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/bsauto b/bin/bsauto index 99f4459..a66921e 100755 --- a/bin/bsauto +++ b/bin/bsauto @@ -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) -- GitLab