add timeouts on wget in update-renater-meta.sh cron script

This commit is contained in:
Thomas NOËL 2016-05-18 23:49:21 +02:00
parent c3c6ad0c5b
commit 98705c9abb
1 changed files with 3 additions and 3 deletions

View File

@ -21,17 +21,17 @@ else
. $BASEDIR/`basename $DEFAULT`
fi
if ! wget --quiet $RENATER_METADATA -O$METADATA_TMP; then
if ! wget --tries=2 --timeout=3 --quiet $RENATER_METADATA -O$METADATA_TMP; then
echo ERROR: unable to retrieve metadata from $RENATER_METADATA
exit 1
fi
if ! wget --quiet $RENATER_ATTRIBUTE_FILTERS -O$FILTERS_TMP; then
if ! wget --tries=2 --timeout=3 --quiet $RENATER_ATTRIBUTE_FILTERS -O$FILTERS_TMP; then
echo ERROR: unable to retrieve attribute filters from $RENATER_ATTRIBUTE_FILTERS
exit 1
fi
if ! wget --quiet $RENATER_CERTIFICATE -O$CERTIFICATE_TMP; then
if ! wget --tries=2 --timeout=3 --quiet $RENATER_CERTIFICATE -O$CERTIFICATE_TMP; then
echo ERROR: unable to retrieve Renater metadata signing certificate from $RENATER_CERTIFICATE
exit 1
fi