git-svn-id: https://opengnsys.es/svn/branches/version1.0@3873 a21b9725-9963-47de-94b9-378ad31fedc9

remotes/github/debian-pkg
alonso 2013-06-12 12:42:26 +00:00
parent 838eafa729
commit 986f850bf0
1 changed files with 11 additions and 4 deletions

View File

@ -23,7 +23,8 @@
# XX1X: Borrar previamente la imagen de la cache antes de copiarla
# XXX1: No borrar archivos en destino
# El valor X indica que no importa el valor que tenga el dato
# $7 Ruta de origen de la Imagen (Carpeta)
# $7 Método de syncronización 1=Sincronización1 2=Sincronizacion2
# $8 Ruta de origen de la Imagen (Carpeta)
#___________________________________________________________________
#
@ -31,13 +32,19 @@
#___________________________________________________________________
PROG="$(basename $0)"
if [ $# -lt 6 ]; then
if [ $# -lt 7 ]; then
usage=" ndisco nparticion nombre_imagen_basica ip_repositorio"
usage="$usage copiar_a_caché Borrar_cache_previamente Ruta_origen"
ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG $usage"
exit $?
fi
# Llamada a la función de sincronización.
ogCrearImagenBasica "$@"
if [ $7 -eq 1 ]; then
#sincronizacion1
ogCrearImagenBasica "$@"
fi
if [ $7 -eq 2 ]; then
#sincronizacion2
fi