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 | |
---|
[3ec149c] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | #_______________________________________________________________________________________________________________________________ |
---|
| 4 | # |
---|
| 5 | # PARAMETROS RECIBIDOS DESDE EL CLIENTE: |
---|
| 6 | # $1 disco |
---|
[d9d1720] | 7 | # $2 par=N�mero de particion |
---|
| 8 | # $3 Nombre can�nico de la imagen |
---|
| 9 | # $4 Direcci�n del repositorio |
---|
[3ec149c] | 10 | #_______________________________________________________________________________________________________________________________ |
---|
[914d834] | 11 | echo $* >> $OGLOGFILE |
---|
| 12 | |
---|
| 13 | umount /opt/opengnsys/images |
---|
| 14 | |
---|
| 15 | if [ "$ogprotocol" == "nfs" ] |
---|
| 16 | then |
---|
| 17 | mount.nfs ${ROOTSERVER}:/opt/opengnsys/images /opt/opengnsys/images -o nolock |
---|
| 18 | fi |
---|
| 19 | |
---|
| 20 | if [ "$ogprotocol" == "smb" ] |
---|
| 21 | then |
---|
| 22 | echo "montando smb" |
---|
| 23 | mount.cifs //${ROOTSERVER}/ogimages /opt/opengnsys/images -o user=opengnsys,pass=og |
---|
| 24 | fi |
---|
| 25 | |
---|
| 26 | if [ -f createImage$ogengine ] |
---|
[d9d1720] | 27 | then |
---|
[914d834] | 28 | createImage$ogengine "$1" "$2" "REPO" "$3" &>> $OGLOGFILE || exit $? |
---|
[d9d1720] | 29 | else |
---|
[914d834] | 30 | createImage "$1" "$2" "REPO" "$3" &>> $OGLOGFILE || exit $? |
---|
[d9d1720] | 31 | fi |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.