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
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | #_______________________________________________________________________________________________________________________________ |
---|
4 | # |
---|
5 | # PARAMETROS RECIBIDOS DESDE EL CLIENTE: |
---|
6 | # $1 disco |
---|
7 | # $2 par=N�mero de particion |
---|
8 | # $3 Nombre can�nico de la imagen |
---|
9 | # $4 Direcci�n del repositorio |
---|
10 | #_______________________________________________________________________________________________________________________________ |
---|
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 ] |
---|
27 | then |
---|
28 | createImage$ogengine "$1" "$2" "REPO" "$3" &>> $OGLOGFILE || exit $? |
---|
29 | else |
---|
30 | createImage "$1" "$2" "REPO" "$3" &>> $OGLOGFILE || exit $? |
---|
31 | fi |
---|
32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.