diff options
author | irina <irinagomez@us.es> | 2014-04-04 12:42:32 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2014-04-04 12:42:32 +0000 |
commit | c4db9c18ec5b148dd67bb452af35b515f8c59e23 (patch) | |
tree | d4e79784d34cf5b3f3e33bb9c50a4e0eaf101462 /client/shared/scripts/restoreDiffImage | |
parent | 006e950a2e2fe7fba70c674c74c1521e2bd99d37 (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-x | client/shared/scripts/restoreDiffImage | 6 |
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 + |