source: client/shared/scripts/deployImage @ cd95622

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
Last change on this file since cd95622 was 599597b, checked in by adv <adv@…>, 14 years ago

version 1.0.1 deployImage corrección llamada a configureOs

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

  • Property mode set to 100755
File size: 664 bytes
RevLine 
[914d834]1#!/bin/bash
2
3TIME1=$SECONDS
4PROG="$(basename $0)"
5if [ $# -lt 4 ]; then
6    ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $PROG REPO imagen ndisco nparticion [ UNICAST|MULTICAST|TORRENT ] [opciones protocolo]"
7    exit $?
8fi
9
10#controlar param1 REPO
[cea6d44]11echo "Realizando un updateCache REPO $2.img $5 $6"
[914d834]12updateCache REPO $2.img $5 $6
[cea6d44]13RETVAL=$?
14if [ "$RETVAL" != "0" ]
[914d834]15then
[cea6d44]16        echo "fin del updateCache REPO $2.img $5 $6 con error $RETVAL"
[d196782]17        # RC=15 No hay cache
18        # RC=16 no hay espacio sufiente
[cea6d44]19        exit $RETVAL
[d196782]20       
[914d834]21else
[d196782]22        echo "iniciando un ogRestore CACHE desde deployImage"
[cea6d44]23        ogRestoreImage CACHE /$2 $3 $4
24        RETVAL=$?
[599597b]25        [ "$RETVAL" == "0" ] && configureOs $3 $4
[cea6d44]26        exit $RETVAL
[914d834]27fi
Note: See TracBrowser for help on using the repository browser.