diff options
Diffstat (limited to 'admin/Interface/RestaurarImagenBasica')
-rwxr-xr-x | admin/Interface/RestaurarImagenBasica | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/admin/Interface/RestaurarImagenBasica b/admin/Interface/RestaurarImagenBasica index be088cc5..73ddb0e2 100755 --- a/admin/Interface/RestaurarImagenBasica +++ b/admin/Interface/RestaurarImagenBasica @@ -47,7 +47,7 @@ # Clear temporary file used as log track by httpdlog # Limpia los ficheros temporales usados como log de seguimiento para httpdlog - echo " " > $OGLOGSESSION; echo " " > $OGLOGCOMMAND + echo -n "" > $OGLOGSESSION; echo " " > $OGLOGCOMMAND # Registro de inicio de ejecuciĆ³n echo "$MSG_INTERFACE_START $0 $*" | tee -a $OGLOGSESSION $OGLOGFILE @@ -55,6 +55,7 @@ if [ $9 -eq 1 ]; then #sincronizacion1 ogRestaurarImagenBasica "$@" + RETVAL=$? fi if [ $9 -eq 2 ]; then @@ -79,5 +80,10 @@ OPT=${5#*_} restoreBaseImage $DEST "$3" $1 $2 $PROTO $OPT - + RETVAL=$? fi + + # Registro de fin de ejecuciĆ³n + echo "$MSG_INTERFACE_END $RETVAL" | tee -a $OGLOGSESSION $OGLOGFILE + + exit $RETVAL |