set timeout to 30s and tries to 3 in update-renater-meta.sh
This commit is contained in:
parent
3d2a1bb78b
commit
20e2045c51
|
@ -8,6 +8,7 @@ METADATA_TMP=`tempfile`
|
|||
FILTERS_TMP=`tempfile`
|
||||
CERTIFICATE_TMP=`tempfile`
|
||||
FIXTURE_TMP=`tempfile --suffix=.json`
|
||||
TIMEOUT=30
|
||||
|
||||
function cleanup {
|
||||
rm -f $METADATA_TMP $FILTERS_TMP $CERTIFICATE_TMP $FIXTURE_TMP
|
||||
|
@ -21,17 +22,17 @@ else
|
|||
. $BASEDIR/`basename $DEFAULT`
|
||||
fi
|
||||
|
||||
if ! wget --tries=2 --timeout=3 --quiet $RENATER_METADATA -O$METADATA_TMP; then
|
||||
if ! wget --tries=3 --timeout=$TIMEOUT --quiet $RENATER_METADATA -O$METADATA_TMP; then
|
||||
echo ERROR: unable to retrieve metadata from $RENATER_METADATA
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! wget --tries=2 --timeout=3 --quiet $RENATER_ATTRIBUTE_FILTERS -O$FILTERS_TMP; then
|
||||
if ! wget --tries=3 --timeout=$TIMEOUT --quiet $RENATER_ATTRIBUTE_FILTERS -O$FILTERS_TMP; then
|
||||
echo ERROR: unable to retrieve attribute filters from $RENATER_ATTRIBUTE_FILTERS
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! wget --tries=2 --timeout=3 --quiet $RENATER_CERTIFICATE -O$CERTIFICATE_TMP; then
|
||||
if ! wget --tries=3 --timeout=$TIMEOUT --quiet $RENATER_CERTIFICATE -O$CERTIFICATE_TMP; then
|
||||
echo ERROR: unable to retrieve Renater metadata signing certificate from $RENATER_CERTIFICATE
|
||||
exit 1
|
||||
fi
|
||||
|
|
Reference in New Issue