summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/restoreDiffImage
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2014-04-04 12:42:32 +0000
committeririna <irinagomez@us.es>2014-04-04 12:42:32 +0000
commitc4db9c18ec5b148dd67bb452af35b515f8c59e23 (patch)
treed4e79784d34cf5b3f3e33bb9c50a4e0eaf101462 /client/shared/scripts/restoreDiffImage
parent006e950a2e2fe7fba70c674c74c1521e2bd99d37 (diff)
#565 Se crea codigo y mensaje de error para los problemas de transferencia de rsync.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4220 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/restoreDiffImage')
-rwxr-xr-xclient/shared/scripts/restoreDiffImage6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/shared/scripts/restoreDiffImage b/client/shared/scripts/restoreDiffImage
index 604e72c1..64ed388d 100755
--- a/client/shared/scripts/restoreDiffImage
+++ b/client/shared/scripts/restoreDiffImage
@@ -109,7 +109,8 @@ ogLock $4 $5
# Sincronizamos la particiĆ³n con la imagen.
ogEcho log session "[60] $MSG_HELP_ogSyncRestore: $1 $3 $DIFFTYPE $4 $5"
ogSyncRestore "$1" "$3" "$DIFFTYPE" $4 $5
-[ $? == 0 ] || ogEcho session warning "$MSG_ERR_SYNCHRONIZING"
+RETVAL=$?
+[ $RETVAL == 0 ] || ogEcho session warning "$MSG_ERR_SYNCHRONIZING"
# Desmontamos la imagen
ogUnmountImage "$1" "$3" "$DIFFTYPE"
@@ -129,3 +130,6 @@ configureOs $4 $5
TIME=$[SECONDS-TIME1]
ogEcho log session "[100] $MSG_SCRIPTS_END $MSG_SCRIPTS_TIME_TOTAL: $[TIME/60]m $[TIME%60]s"
+# Si ha habido problema al sincronizar nos salimos con error
+[ $RETVAL == 0 ] || exit $OG_ERR_SYNCHRONIZING
+