From 293e505bbbfe0c86304bc1d0071e0ba4bfe350fc Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 28 Jan 2020 15:41:47 +0000 Subject: [PATCH] Hardcoded an rsync target path, and added a bash trap for errors in hourly and daily cron scripts. - Legacy-Id: 17264 --- bin/daily | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/daily b/bin/daily index 108b7becc..f7384143b 100755 --- a/bin/daily +++ b/bin/daily @@ -6,6 +6,7 @@ # /etc/cron.d/datatracker # Make sure we stop if something goes wrong: +program=${0##*/} trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)"; exit 1' ERR # Run the hourly jobs first