summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-07-11 12:01:06 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2016-07-11 12:01:06 (GMT)
commit20e2045c5138a91c12bfe44806fdf73f41be80c3 (patch)
treee420465601cef4b356de2c0dc485505d6491ae19
parent3d2a1bb78b88534b2b03807703df2f1dedde4abd (diff)
downloadauthentic2-supann-0.19.zip
authentic2-supann-0.19.tar.gz
authentic2-supann-0.19.tar.bz2
set timeout to 30s and tries to 3 in update-renater-meta.shv0.19
-rwxr-xr-xupdate-renater-meta.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/update-renater-meta.sh b/update-renater-meta.sh
index 1683b21..6adc261 100755
--- a/update-renater-meta.sh
+++ b/update-renater-meta.sh
@@ -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