source: admin/Interface/CrearImagen @ 16cc9b2

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 16cc9b2 was 914d834, checked in by adv <adv@…>, 14 years ago

branch version 1.0

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

  • Property mode set to 100755
File size: 921 bytes
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#_______________________________________________________________________________________________________________________________
11echo $* >>  $OGLOGFILE
12
13umount /opt/opengnsys/images
14
15if [ "$ogprotocol" == "nfs" ]
16then
17        mount.nfs ${ROOTSERVER}:/opt/opengnsys/images /opt/opengnsys/images -o nolock
18fi
19       
20if [ "$ogprotocol" == "smb" ]
21then
22        echo "montando smb"
23        mount.cifs //${ROOTSERVER}/ogimages /opt/opengnsys/images -o user=opengnsys,pass=og
24fi
25
26if [ -f createImage$ogengine ]
27then
28        createImage$ogengine "$1" "$2" "REPO" "$3" &>> $OGLOGFILE || exit $?
29else
30        createImage "$1" "$2" "REPO" "$3" &>> $OGLOGFILE || exit $?
31fi
32
Note: See TracBrowser for help on using the repository browser.