diff options
author | ramon <ramongomez@us.es> | 2011-07-14 09:52:18 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-07-14 09:52:18 +0000 |
commit | 33100f8038618951258a68d3cab509627c30b7aa (patch) | |
tree | 239ef7d10210b1cb195745c6ecbfd93066f3d2ce /client/shared/etc/preinit/mountrepo.sh | |
parent | 0e9b60ad12e83dae6b91d6b0021f6ec1e3d8820e (diff) |
Versión 1.0.2: montaje correcto de repositorio independiente de imágenes (cambio sugerido por Migual Angel de Vega, UHU)
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2134 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/etc/preinit/mountrepo.sh')
-rwxr-xr-x | client/shared/etc/preinit/mountrepo.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/client/shared/etc/preinit/mountrepo.sh b/client/shared/etc/preinit/mountrepo.sh index aa0b9886..4ba0da9b 100755 --- a/client/shared/etc/preinit/mountrepo.sh +++ b/client/shared/etc/preinit/mountrepo.sh @@ -9,6 +9,7 @@ #*/ OGIMG=${OGIMG:-/opt/opengnsys/images} +ROOTREPO=${ROOTREPO:-"$ROOTSERVER"} # TODO Revisar proceso de arranque para no montar 2 veces el repositorio. if [ $ogactiveadmin == "true" ]; then @@ -18,8 +19,8 @@ if [ $ogactiveadmin == "true" ]; then protocol=${potocol:-"smb"} printf "$MSG_MOUNTREPO\n" "$protocol" "$boot" case "$protocol" in - nfs) mount.nfs ${ROOTSERVER}:$OGIMG $OGIMG -o rw,nolock ;; - smb) mount.cifs //${ROOTSERVER}/ogimages $OGIMG -o rw,serverino,acl,username=opengnsys,password=og ;; + nfs) mount.nfs ${ROOTREPO}:$OGIMG $OGIMG -o rw,nolock ;; + smb) mount.cifs //${ROOTREPO}/ogimages $OGIMG -o rw,serverino,acl,username=opengnsys,password=og ;; esac fi |