summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/restoreImage
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2017-07-28 08:50:53 +0000
committeririna <irinagomez@us.es>2017-07-28 08:50:53 +0000
commitce678a0f469019c10ebf7e7b1c1de496bed98dce (patch)
treeebc08b5e5e7a0bc81b75285a0521a49a8ebbd17d /client/shared/scripts/restoreImage
parent6934ad12ffcea46bbb1cda8278371b54ee51dce6 (diff)
#781 deploy con multicast: Si timeout para error multicast es menor que tiempo de espera del servidor lo aumento. ogAdmRepoAux: Se corrige errata al llamar a sendMcastFile
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5413 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/restoreImage')
-rwxr-xr-xclient/shared/scripts/restoreImage4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/shared/scripts/restoreImage b/client/shared/scripts/restoreImage
index 00f51f49..d9e7f584 100755
--- a/client/shared/scripts/restoreImage
+++ b/client/shared/scripts/restoreImage
@@ -48,6 +48,10 @@ PART="$4"
PROTO="${5^^}"
PROTO=${PROTO:-"UNICAST"}
PROTOOPT="$6"
+# Si MCASTWAIT menos que tiempo de espera del servidor lo aumento
+if [ "${PROTO%-*}" == "MULTICAST" ] && [[ ${PROTOOPT##*:} =~ ^-?[0-9]+$ ]]; then
+ [ ${MCASTWAIT:-0} -lt ${PROTOOPT##*:} ] && let MCASTWAIT=${PROTOOPT##*:}+5
+fi
IMGTYPE="${IMGTYPE:-"img"}"
# Unidad organizativa