918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Rev | Line | |
---|
[914d834] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | TIME1=$SECONDS |
---|
| 4 | PROG="$(basename $0)" |
---|
| 5 | if [ $# -lt 4 ]; then |
---|
| 6 | ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO imagen ndisco nparticion [ UNICAST|MULTICAST|TORRENT ] [opciones protocolo]" |
---|
| 7 | exit $? |
---|
| 8 | fi |
---|
| 9 | |
---|
| 10 | #controlar param1 REPO |
---|
| 11 | |
---|
| 12 | updateCache REPO $2.img $5 $6 |
---|
[d196782] | 13 | RC=$? |
---|
| 14 | if [ "$RC" != "0" ] |
---|
[914d834] | 15 | then |
---|
[d196782] | 16 | echo "fin del updateCache REPO $2.img $5 $6 con error $RC" |
---|
| 17 | # RC=15 No hay cache |
---|
| 18 | # RC=16 no hay espacio sufiente |
---|
| 19 | exit $RC |
---|
| 20 | |
---|
[914d834] | 21 | else |
---|
[d196782] | 22 | echo "iniciando un ogRestore CACHE desde deployImage" |
---|
| 23 | ogRestoreImage CACHE $2 $3 $4 |
---|
| 24 | ogExtendFs $3 $4 |
---|
[914d834] | 25 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.