summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/restoreImage
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-03-12 16:30:09 +0000
committerramon <ramongomez@us.es>2014-03-12 16:30:09 +0000
commite7e3140d9e4bd67c0f578c09230d3073986b8367 (patch)
treedbb51ae32e8165d30a8f842225fdc066b06b9671 /client/shared/scripts/restoreImage
parent4bf0ddf03d8703ca2b48a421c6b65db7460a69d1 (diff)
#640: Algunos scripts adaptados al nuevo formato de la función {{{ogEcho}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4182 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/restoreImage')
-rwxr-xr-xclient/shared/scripts/restoreImage8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/shared/scripts/restoreImage b/client/shared/scripts/restoreImage
index 64c0940d..9d7b4e6e 100755
--- a/client/shared/scripts/restoreImage
+++ b/client/shared/scripts/restoreImage
@@ -34,7 +34,7 @@ IMGTYPE="${IMGTYPE:-"img"}"
IMGFILE=$(ogGetPath "$REPO" "$IMGNAME.$IMGTYPE")
IMGDIR=$(ogGetParentPath "$REPO" "$IMGNAME")
if [ "$IMGFILE" == "" -o "$IMGDIR" == "" ]; then
- ogRaiseError $OG_ERR_NOTFOUND "$REPO, ${IMGNAME%/*}"
+ ogRaiseError $OG_ERR_NOTFOUND "$REPO, ${IMGNAME%/*}"
exit $?
fi
@@ -42,7 +42,7 @@ fi
case "$PROTO" in
UNICAST|UNICAST-DIRECT)
# Restaurar la imagen.
- echo "[40] ogRestoreImage $REPO $IMGNAME $DISK $PART UNICAST" | tee -a $OGLOGSESSION $OGLOGFILE
+ ogEcho log session "[40] ogRestoreImage $REPO $IMGNAME $DISK $PART UNICAST"
ogRestoreImage "$REPO" "$IMGNAME" "$DISK" "$PART" UNICAST 2>&1 | tee -a $OGLOGCOMMAND
RETVAL=${PIPESTATUS[0]}
;;
@@ -51,7 +51,7 @@ case "$PROTO" in
TOOL=$(ogGetImageProgram REPO $IMGNAME)
COMPRESS=$(ogGetImageCompressor REPO $IMGNAME)
#TODO comprobar parametros anteriores
- echo "[40] ogMcastReceiverPartition $DISK $PART $PORT $TOOL $COMPRESS" | tee -a $OGLOGSESSION $OGLOGFILE
+ ogEcho log session "[40] ogMcastReceiverPartition $DISK $PART $PORT $TOOL $COMPRESS"
ogMcastRequest "$IMGNAME.img" "$PROTOOPT"
ogMcastReceiverPartition "$DISK" "$PART" "$PORT" "$TOOL" "$COMPRESS" 2>&1 | tee -a $OGLOGCOMMAND
RETVAL=${PIPESTATUS[0]}
@@ -62,7 +62,7 @@ case "$PROTO" in
esac
TIME=$[SECONDS-TIME1]
-echo "[100] Duracion de la operacion $[TIME/60]m $[TIME%60]s" | tee -a $OGLOGSESSION $OGLOGFILE
+ogEcho log session "[100] Duracion de la operacion $[TIME/60]m $[TIME%60]s"
# Código de salida del comando prinicpal de restauración.
exit $RETVAL