diff options
author | ramon <ramongomez@us.es> | 2011-10-17 11:57:51 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-10-17 11:57:51 +0000 |
commit | a3233838e4de70f217d47a4d8494bd3b25756981 (patch) | |
tree | 8d395000232d131c0db05c6497354dbcad387008 /admin/Interface | |
parent | bfc4d9c50a4ed59069ed22b78c39f0f63fc52b2e (diff) |
Versión 1.0.2: Usar camino relativo al repositorio para restaurar fichero por Multicast; entrecomillado de parámetros para permitir espacios en la interfaz de restauración (modifica #448).
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2351 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Interface')
-rwxr-xr-x | admin/Interface/RestaurarImagen | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/admin/Interface/RestaurarImagen b/admin/Interface/RestaurarImagen index 75fcb36c..4941c69c 100755 --- a/admin/Interface/RestaurarImagen +++ b/admin/Interface/RestaurarImagen @@ -51,7 +51,7 @@ REPO=${4:-"REPO"} if [ "$REPO" == "CACHE" ] then echo "Iniciando un ogRestoreImage CACHE /$3 $1 $2" &>> $OGLOGFILE - ogRestoreImage CACHE /"$3" "$1" "$2" &>> $OGLOGFILE + ogRestoreImage CACHE "$3" "$1" "$2" &>> $OGLOGFILE RETVAL=$? fi @@ -59,32 +59,32 @@ fi if [ "$REPO" == "REPO" ] then - echo "updateCache REPO /$3.img $5 $6" &>> $OGLOGFILE - updateCache REPO /$3.img $5 $6 &>> $OGLOGFILE + echo "updateCache REPO \"$3.img\" $5 $6" &>> $OGLOGFILE + updateCache REPO "$3.img" "$5" "$6" &>> $OGLOGFILE RETVAL=$? case $RETVAL in 0) echo "updateCache (correcto); re realiza ogRestoreImage REPO /$3 $1 $2 UNICAST" &>> $OGLOGFILE - ogRestoreImage CACHE /"$3" "$1" "$2" &>> $OGLOGFILE - RETVAL=$? + ogRestoreImage CACHE "$3" "$1" "$2" &>> $OGLOGFILE + RETVAL=$? ;; 15) echo "updateCache(no hay CACHE); se realiza ogRestoreImage REPO /$3 $1 $2 UNICAST" &>> $OGLOGFILE - ogRestoreImage REPO /"$3" "$1" "$2" &>> $OGLOGFILE - RETVAL=$? + ogRestoreImage REPO "$3" "$1" "$2" &>> $OGLOGFILE + RETVAL=$? ;; 16) echo "updateCache(no hay espacio sufiente en la CACHE), Se realiza ogRestoreImage REPO /$3 $1 $2 UNICAST" &>> $OGLOGFILE - ogRestoreImage REPO /"$3" "$1" "$2" &>> $OGLOGFILE + ogRestoreImage REPO "$3" "$1" "$2" &>> $OGLOGFILE RETVAL=$? ;; - esac + esac fi if [ $RETVAL == 0 ] then echo "Iniciando la Configuracion del Sistema Restaurado" &>> $OGLOGFILE - configureOs $1 $2 + configureOs "$1" "$2" fi if [ $RETVAL == 0 ] then @@ -94,3 +94,4 @@ else echo $RETVAL &>> $OGLOGFILE fi exit $RETVAL + |