From 368f358d12708726aaae4e1bfc6bc949812962a7 Mon Sep 17 00:00:00 2001 From: Lucas Costa Beyeler Date: Mon, 4 Sep 2017 20:39:10 -0300 Subject: [PATCH] Including timeout for wget fail after 5 seconds --- src/zmbackup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zmbackup b/src/zmbackup index 5660929..94b374e 100755 --- a/src/zmbackup +++ b/src/zmbackup @@ -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 }