diff --git a/raw/ekman/cronjobs/norkyst/cron.yaml b/raw/ekman/cronjobs/norkyst/cron.yaml index 154ddd61..41b4e552 100644 --- a/raw/ekman/cronjobs/norkyst/cron.yaml +++ b/raw/ekman/cronjobs/norkyst/cron.yaml @@ -16,8 +16,8 @@ data: JOBS=8 # parallel downloads # define start and end dates (YYYY-MM-DD) - start_date=$(date +%Y-%m-%d) - end_date=$(date +%Y-%m-%d) + start_date=$(date -d "yesterday" +%Y-%m-%d) + end_date=$(date -d "yesterday" +%Y-%m-%d) # check if thredds is reachable before attempting any downloads if ! wget --spider --quiet "https://thredds.met.no/thredds/catalog/fou-hi/new_norkyst800m/norkyst_v3_test/his/catalog.html"; then