blob: 7e714ba35303e33850b34512b81d2a88a831665d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
#_______________________________________________________________________________________________________________________________
#
# PARAMETROS RECIBIDOS DESDE EL CLIENTE:
# $1 disco
# $2 par=N�mero de particion
# $3 Nombre can�nico de la imagen
# $4 Direcci�n IP del repositorio
# $5 Protocolo UNICAST MULTICAST TORRENT
# $6 Opciones del protocolo
#_______________________________________________________________________________________________________________________________
# Si existe, ejecuta script personalizado "deployImageCustom"; si no, llama al genérico "deployImage".
if which deployImageCustom &>/dev/null; then
deployImageCustom "$4" "$3" "$1" "$2" "$5" "$6" "$7" "$8" || exit $?
else
deployImage "$4" "$3" "$1" "$2" "$5" "$6" "$7" "$8" || exit $?
fi
|