From bffa4aab54412e9e7369024c99809542fbcde1e6 Mon Sep 17 00:00:00 2001 From: albertogp Date: Tue, 23 Mar 2021 10:27:18 +0100 Subject: "ID-824 Modificando comando setBootMode por bootOs" --- client/shared/scripts/deployImage | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client') diff --git a/client/shared/scripts/deployImage b/client/shared/scripts/deployImage index d74d3ac2..db82539a 100755 --- a/client/shared/scripts/deployImage +++ b/client/shared/scripts/deployImage @@ -212,6 +212,9 @@ else fi RETVAL=$? +# Marca de Iniciar Sistema Restaurado +InSisRes="/opt/opengnsys/log/setBootMode/InSisRes."$(ogGetIpAddress) + # Mostrar resultados. RESUMERESTOREIMAGE=$(grep -m 1 "Total Time:" $OGLOGCOMMAND) ogEcho log session " [ ] $RESUMERESTOREIMAGE " @@ -220,6 +223,7 @@ if [ $RETVAL -ne 0 ] ; then ogRaiseError session $OG_ERR_IMAGE "$REPO $IMGNAME" 2>&1 # Muestro registro de fin de ejecuciĆ³n si no viene de Ejecutar Script [ "$(ogGetCaller)" == "EjecutarScript" ] || ogEcho log session "$MSG_INTERFACE_END $OG_ERR_IMAGE" + [ -f $InSisRes ] && rm -f $InSisRes ## Borrar Marca Iniciar Sistema Restaurado exit $OG_ERR_IMAGE fi TIME3=$[SECONDS-TIME3] @@ -241,6 +245,8 @@ ogEcho log session "[100] $MSG_SCRIPTS_TIME_TOTAL $[TIME/60]m $[TIME%60]s" # Si se ha llamado desde ejecutar script no lo muestro para no repetir. if [ "$(ogGetCaller)" != "EjecutarScript" ] ; then ogEcho log session "$MSG_INTERFACE_END $RETVAL" + [ -f $InSisRes ] && ./$InSisRes &>/dev/null ## Iniciar Sistema Restaurado exit $RETVAL fi +[ -f $InSisRes ] && ./$InSisRes &>/dev/null ## Iniciar Sistema Restaurado \ No newline at end of file -- cgit v1.2.3-18-g5258