Skip to content

Commit

Permalink
Including timeout for wget fail after 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascbeyeler committed Sep 4, 2017
1 parent e125733 commit 368f358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zmbackup
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ loop_mbldp_backup()
ldapsearch -x -H $LDAPSERVER -D $LDAPADMIN -w $LDAPPASS -b '' \
-LLL "(&(|(mail=$1)(uid=$1))$2)" > $TEMPDIR/$1.ldiff
wget --timeout=5 --tries=2 --quiet -O $TEMPDIR/$1.tgz --user $ADMINUSER \
--passwd $ADMINPASS "https://$MAILHOST:7071/home/$1/?fmt=tgz$AFTER" --no-check-certificate
--password $ADMINPASS "https://$MAILHOST:7071/home/$1/?fmt=tgz$AFTER" --no-check-certificate
echo $SESSION:$1:$(date +%m/%d/%y) >> $TEMPSESSION
}

Expand Down

0 comments on commit 368f358

Please sign in to comment.