diff options
author | adv <adv@uma.es> | 2011-02-23 19:33:11 +0000 |
---|---|---|
committer | adv <adv@uma.es> | 2011-02-23 19:33:11 +0000 |
commit | d9d17207d53b61d174c2b54f2695eb5a4e932acd (patch) | |
tree | 8e00b447baa91bd84db2278acb1d77591ae5bfc6 /admin | |
parent | bc55985ea2d013b828eac17042d3adb528ab0955 (diff) |
version 1.0 - interfaz adm - ticket:304
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1485 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rwxr-xr-x | admin/Interface/CrearImagen | 15 | ||||
-rwxr-xr-x | admin/Interface/EjecutarScript | 17 | ||||
-rwxr-xr-x | admin/Interface/RestaurarImagen | 14 |
3 files changed, 36 insertions, 10 deletions
diff --git a/admin/Interface/CrearImagen b/admin/Interface/CrearImagen index 62f0de9c..ac20c339 100755 --- a/admin/Interface/CrearImagen +++ b/admin/Interface/CrearImagen @@ -4,9 +4,16 @@ # # PARAMETROS RECIBIDOS DESDE EL CLIENTE: # $1 disco -# $2 par=Número de particion -# $3 Nombre canónico de la imagen -# $4 Dirección del repositorio +# $2 par=N�mero de particion +# $3 Nombre can�nico de la imagen +# $4 Direcci�n del repositorio #_______________________________________________________________________________________________________________________________ -createImage "$1" "$2" "REPO" "$3" +if [ "$engine" == "testing" ] +then + echo $* >> $OGLOGFILE + createImage "$1" "$2" "REPO" "$3" &>> $OGLOGFILE || exit $? +else + createImage "$1" "$2" "REPO" "$3" +fi + diff --git a/admin/Interface/EjecutarScript b/admin/Interface/EjecutarScript index 8925ac2b..09e746cf 100755 --- a/admin/Interface/EjecutarScript +++ b/admin/Interface/EjecutarScript @@ -1,3 +1,16 @@ #!/bin/bash -chmod +x $1 -$1 || exit $? +if [ "$engine" == "testing" ] + then + echo -e >> $OGLOGFILE + echo "Contenido de la ejecucion: *****************************" >> $OGLOGFILE + cat $1 >> $OGLOGFILE + echo -e >> $OGLOGFILE + echo -e >> $OGLOGFILE + echo "Salida: *****************************" >> $OGLOGFILE + chmod +x $1 + $1 &>> $OGLOGFILE || exit $? + echo "Fin: *****************************" >> $OGLOGFILE +else + chmod +x $1 + $1 || exit $? +fi diff --git a/admin/Interface/RestaurarImagen b/admin/Interface/RestaurarImagen index 48f1e46a..8556807a 100755 --- a/admin/Interface/RestaurarImagen +++ b/admin/Interface/RestaurarImagen @@ -3,10 +3,16 @@ # # PARAMETROS RECIBIDOS DESDE EL CLIENTE: # $1 disco -# $2 par=Número de particion -# $3 Nombre canónico de la imagen -# $4 Dirección del repositorio +# $2 par=N�mero de particion +# $3 Nombre can�nico de la imagen +# $4 Direcci�n del repositorio #_______________________________________________________________________________________________________________________________ -ogRestoreImage REPO $3 $1 $2 UNICAST +if [ "$engine" == "testing" ] +then + echo $* >> $OGLOGFILE + restoreImage REPO $3 $1 $2 UNICAST &>> $OGLOGFILE || exit $? +else + ogRestoreImage REPO $3 $1 $2 UNICAST +fi |