From 3d2b052885250ea2aac1be5e15e037c25df5c84c Mon Sep 17 00:00:00 2001 From: Asheesh Laroia Date: Wed, 8 Jan 2014 22:24:44 -0800 Subject: [PATCH] Use curl instead of wget The story seems to be that wget is incompatible with Subject Alternative Name, which our SSL certs just switched to using because we are now behind CloudFlare. --- run_importer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_importer.sh b/run_importer.sh index 2f311137b7..7cf134648f 100755 --- a/run_importer.sh +++ b/run_importer.sh @@ -24,8 +24,8 @@ fi URL=https://openhatch.org/+api/v1/customs/tracker_model/\?just_stale\=yes\&format\=yaml\&limit\="$MAX_TRACKERS"\&tracker_id="$TRACKER_ID" -# It's OK if wget has to try 4 times. -(wget "$URL" -O- || wget "$URL" -O- || wget "$URL" -O- || wget "$URL" -O-) > "$BUG_TRACKER_LIST" +# It's OK if curl has to try 4 times. +(curl "$URL" || curl "$URL" || curl "$URL" || curl "$URL" -O-) > "$BUG_TRACKER_LIST" pushd ../oh-bugimporters env/bin/python bugimporters/main.py -i "$BUG_TRACKER_LIST" -o "$SCRAPY_RESULT_FILE"