diff options
author | Irina Gómez <irinagomez@us.es> | 2019-08-09 13:59:55 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-08-20 17:26:48 +0200 |
commit | 692ed7a7c714416565b57ce795704884b7e1a033 (patch) | |
tree | 309577eddea7a4eee50f0543347f2589f68c4326 /client | |
parent | 76901a2eae3703dc97df2f98606a57a8e24ba313 (diff) |
#923 deployImage exits if detects error in updateCache. updateCache exits if it detects error when copying torrent file.
Diffstat (limited to 'client')
-rwxr-xr-x | client/shared/scripts/deployImage | 4 | ||||
-rwxr-xr-x | client/shared/scripts/updateCache | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/client/shared/scripts/deployImage b/client/shared/scripts/deployImage index b6696443..9406d80e 100755 --- a/client/shared/scripts/deployImage +++ b/client/shared/scripts/deployImage @@ -167,6 +167,10 @@ case "$MODE" in # Time-out en la transferencia multicast (El mensaje de error está enviado) exit $RETVAL ;; + *) + # Error desconocido + exit $RETVAL + ;; esac ;; *) # Error: protocolo desconocido. diff --git a/client/shared/scripts/updateCache b/client/shared/scripts/updateCache index 0632365f..73086bb7 100755 --- a/client/shared/scripts/updateCache +++ b/client/shared/scripts/updateCache @@ -207,7 +207,7 @@ case "$PROTOCOLO" in ogEcho log session "ogCopyFile $REPOSITORIO $2.torrent absolute $OGCAC/$OGIMG" # tiempos timewait=$(expr $(printf '%d\n' 0x$(ogGetMacAddress | awk -F: '{print $5$6}')) \* 120 / 65535) - ogExecAndLog command ogCopyFile $REPOSITORIO "$2.torrent" "$IMGDIR" + ogExecAndLog command ogCopyFile $REPOSITORIO "$2.torrent" "$IMGDIR" || exit $? #TODO: comprobar que el tracker definido en el fichero es correcto. #TODO comprobar que el fichero torrent está en cache # retardamos el inicio -aleatorio de 0 a 120 segundos- al tracker para gestionar mas de +-40 equipos |