diff options
author | albertogp <albertogp@uma.es> | 2021-03-23 10:27:18 +0100 |
---|---|---|
committer | albertogp <albertogp@uma.es> | 2021-05-03 17:05:04 +0200 |
commit | bea5a3c1d0b667694ccf3d18c569fe3ef0d28bb7 (patch) | |
tree | 050f3ac6a36492e053640ab12cfb99a56d0052d0 /client/shared/scripts/deployImage | |
parent | 6747826c962cc3862446a4fb851858b5de196427 (diff) |
"ID-824 Modificando comando setBootMode por bootOs"
Diffstat (limited to 'client/shared/scripts/deployImage')
-rwxr-xr-x | client/shared/scripts/deployImage | 6 |
1 files changed, 6 insertions, 0 deletions
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 |