diff options
author | irina <irinagomez@us.es> | 2014-03-13 13:44:51 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2014-03-13 13:44:51 +0000 |
commit | 64cf3d33de3b9f7b1cb8092a2f9fc8d20acd39bb (patch) | |
tree | 6c4195e1ce91fdea1d6c1b3ca8ef8729558e39f3 /client/shared/scripts/restoreImage | |
parent | a1039c0c43c90e1c0f47a5ba436496da648d6e4e (diff) |
#640 algunos script adaptados al nuevo formato de la funcion {{{ogRaiseError}}}
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4184 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/restoreImage')
-rwxr-xr-x | client/shared/scripts/restoreImage | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/shared/scripts/restoreImage b/client/shared/scripts/restoreImage index 9d7b4e6e..e10cfba7 100755 --- a/client/shared/scripts/restoreImage +++ b/client/shared/scripts/restoreImage @@ -5,7 +5,7 @@ TIME1=$SECONDS PROG="$(basename $0)" if [ $# -lt 4 ]; then - ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO|CACHE imagen ndisco nparticion [ UNICAST|MULTICAST opciones protocolo]" + ogRaiseError session $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO|CACHE imagen ndisco nparticion [ UNICAST|MULTICAST opciones protocolo]" exit $? fi @@ -19,7 +19,7 @@ fi echo " " > $OGLOGCOMMAND [ "$(ogGetCaller)" == "deployImage" ] || echo -n "" > $OGLOGSESSION; -echo "[1] $MSG_SCRIPTS_START $0 $*" | tee -a $OGLOGSESSION $OGLOGFILE +ogEcho log session "[1] $MSG_SCRIPTS_START $0 $*" | tee -a $OGLOGSESSION $OGLOGFILE # Procesar parĂ¡metros de entrada REPO="${1^^}" @@ -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 session $OG_ERR_NOTFOUND "$REPO, ${IMGNAME%/*}" exit $? fi @@ -57,7 +57,7 @@ case "$PROTO" in RETVAL=${PIPESTATUS[0]} ;; *) # Protocolo desconocido. - ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO|CACHE imagen ndisco nparticion [ UNICAST|MULTICAST opciones ]" + ogRaiseError session $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO|CACHE imagen ndisco nparticion [ UNICAST|MULTICAST opciones ]" exit $? esac |