Skip to content

Commit

Permalink
Do not query for file headers on disconnected install
Browse files Browse the repository at this point in the history
Even if we have the image cached locally, we try to do
a query for the latest headers of the file. On a disconnected
install this is causing a failure, so in that case we should
not error and take the already present headers.

Signed-off-by: Yolanda Robla <[email protected]>
  • Loading branch information
Yolanda Robla committed Jan 27, 2020
1 parent 22cf258 commit 9e819db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get-resource.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi
if [ -e $FFILENAME.headers ] ; then
ETAG=$(awk '/ETag:/ {print $2}' $FFILENAME.headers | tr -d "\r")
cd $TMPDIR
curl -g --verbose --dump-header $FFILENAME.headers -O $IPA_BASEURI/$FFILENAME --header "If-None-Match: $ETAG"
curl -g --verbose --dump-header $FFILENAME.headers -O $IPA_BASEURI/$FFILENAME --header "If-None-Match: $ETAG" || cp /shared/html/images/$FFILENAME.headers .
# curl didn't download anything because we have the ETag already
# but we don't have it in the images directory
# Its in the cache, go get it
Expand Down

0 comments on commit 9e819db

Please sign in to comment.